|
Nebula
|
#include <dofcontext.h>
Inherits Graphics::GraphicsContext.
Public Member Functions | |
| DofContext () | |
| constructor | |
| virtual | ~DofContext () |
| destructor | |
| Public Member Functions inherited from Graphics::GraphicsContext | |
| GraphicsContext () | |
| constructor | |
| virtual | ~GraphicsContext () |
| destructor | |
Static Public Member Functions | |
| static void | Create () |
| create context | |
| static void | Discard () |
| discard context | |
| static void | Setup () |
| setup dof context | |
| static void | SetBokeh (float blades, float rotation, float roundness) |
| Aperture.x blade count, y rotation in radians, z roundness in [0, 1]. | |
| static void | SetDirtMask (const CoreGraphics::TextureId texture) |
| Aperture intensity for every bokeh disk. | |
| static void | Resize (const uint framescriptHash, SizeT width, SizeT height) |
| Handle window resize. | |
Private Member Functions | |
| __DeclarePluginContext () | |
Static Private Member Functions | |
| static Graphics::ContextEntityId | Alloc () |
| implement an empty alloc | |
| static void | Dealloc (Graphics::ContextEntityId id) |
| implement a dummy dealloc | |
Additional Inherited Members | |
| Static Protected Member Functions inherited from Graphics::GraphicsContext | |
| static void | InternalRegisterEntity (const Graphics::GraphicsEntityId id, Graphics::GraphicsContextState &&state) |
| static void | InternalDeregisterEntity (const Graphics::GraphicsEntityId id, Graphics::GraphicsContextState &&state) |
| template<class ID_ALLOCATOR> | |
| static void | InternalDefragment (ID_ALLOCATOR &allocator, Graphics::GraphicsContextState &&state) |
| PostEffects::DofContext::DofContext | ( | ) |
constructor
|
virtual |
destructor
|
private |
|
inlinestaticprivate |
implement an empty alloc
|
static |
create context
|
inlinestaticprivate |
implement a dummy dealloc
|
static |
discard context
|
static |
Handle window resize.
|
static |
Aperture.x blade count, y rotation in radians, z roundness in [0, 1].
Blade count 3..8 is a regular iris. Any other count is a disk. Roundness 0 is straight blades, 1 is a disk. w is 0 while the dirt mask is the white placeholder. The mask is rebuilt on the next DofMask dispatch.
|
static |
Aperture intensity for every bokeh disk.
r is the weight. White leaves the gather unchanged. The initial texture is CoreGraphics::White2D.
|
static |
setup dof context