dao::framebuffer

Declared in dao/Framebuffer.h.

Functions

Effects()

std::vector<std::wstring> Effects()

Returns the names of the effects the game has.

Call it on the game thread, as with all of these.

Returns an empty vector before the renderer has made them

Enabled()

std::optional<bool> Enabled(std::wstring_view effect)

Returns whether an effect is on.

Returns nullopt if the game has no effect of that name

SetEnabled()

void SetEnabled(std::wstring_view effect, bool on)

Turns an effect on or off. It does nothing if the game has no effect of that name.

SetValue()

void SetValue(std::wstring_view effect, std::wstring_view value, float to)

Sets one of an effect’s values.

It does nothing if there is no such effect or value, or the value is not a float.

Value()

std::optional<float> Value(std::wstring_view effect, std::wstring_view value)

Returns one of an effect’s values.

Parameter  
value its name, as FB_SetEffectResource takes it: Brightness, Hue

Returns nullopt if there is no such effect or value, or the value is not a float