raisin::LensDropletCompositeSystem
class · #include <rayrai/PostFxRenderTargets.hpp>
Owns the FBO + composite texture used by the lens-droplet pass. RGBA16F target, sized to the scene viewport.
Extracted from RayraiWindow as part of the 1.1 decomposition.
Constructors & destructor
LensDropletCompositeSystem
cpp
LensDropletCompositeSystem() = defaultcpp
LensDropletCompositeSystem(const LensDropletCompositeSystem &) = deletecpp
LensDropletCompositeSystem(LensDropletCompositeSystem &&) = delete~LensDropletCompositeSystem
cpp
~LensDropletCompositeSystem()Public member functions
operator=
cpp
LensDropletCompositeSystem &operator=(const LensDropletCompositeSystem &) = deletecpp
LensDropletCompositeSystem &operator=(LensDropletCompositeSystem &&) = deleteensureResources
cpp
bool ensureResources(int width, int height)(Re)allocate the FBO and texture for this size; leaves framebuffer 0 bound.
Parameters
| Parameter | Description |
|---|---|
width | Width in pixels. |
height | Height in pixels. |
Returns False for a non-positive size or an incomplete framebuffer.
release
cpp
void release()Delete the FBO and texture; safe to call repeatedly.
fbo
cpp
unsigned int fbo() constReturns Composite framebuffer, or 0.
compositeTex
cpp
unsigned int compositeTex() constReturns RGBA16F composite texture, or 0.
width
cpp
int width() constReturns Allocated width.
height
cpp
int height() constReturns Allocated height.