Skip to content

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() = default
cpp
LensDropletCompositeSystem(const LensDropletCompositeSystem &) = delete
cpp
LensDropletCompositeSystem(LensDropletCompositeSystem &&) = delete

~LensDropletCompositeSystem ​

cpp
~LensDropletCompositeSystem()

Public member functions ​

operator= ​

cpp
LensDropletCompositeSystem &operator=(const LensDropletCompositeSystem &) = delete
cpp
LensDropletCompositeSystem &operator=(LensDropletCompositeSystem &&) = delete

ensureResources ​

cpp
bool ensureResources(int width, int height)

(Re)allocate the FBO and texture for this size; leaves framebuffer 0 bound.

Parameters

ParameterDescription
widthWidth in pixels.
heightHeight 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() const

Returns Composite framebuffer, or 0.

compositeTex ​

cpp
unsigned int compositeTex() const

Returns RGBA16F composite texture, or 0.

width ​

cpp
int width() const

Returns Allocated width.

height ​

cpp
int height() const

Returns Allocated height.

RaiSim — physics for robotics and AI.