Skip to content

ludus::runtime::game_api::RenderParams

Ludus Wiki · API overview · Browse API

Struct

Render parameters the module writes each frame.
The host owns the RHI session and performs the actual draw; the module only expresses a bounded, validated description. The current public RHI supports frame clearing; colors are clamped by the host to [0,1]. Draw/resource APIs can extend this contract.

Declared in modules/runtime/game_api/include/ludus/runtime/game_api/services.h

#include <ludus/runtime/game_api/services.h>
struct ludus::runtime::game_api::RenderParams final

Fields

ClearRed

float32 ludus::runtime::game_api::RenderParams::ClearRed = 0

Related types: float32

Declared in modules/runtime/game_api/include/ludus/runtime/game_api/services.h

ClearGreen

float32 ludus::runtime::game_api::RenderParams::ClearGreen = 0

Related types: float32

Declared in modules/runtime/game_api/include/ludus/runtime/game_api/services.h

ClearBlue

float32 ludus::runtime::game_api::RenderParams::ClearBlue = 0

Related types: float32

Declared in modules/runtime/game_api/include/ludus/runtime/game_api/services.h

ClearAlpha

float32 ludus::runtime::game_api::RenderParams::ClearAlpha = 1

Related types: float32

Declared in modules/runtime/game_api/include/ludus/runtime/game_api/services.h

Uniform0

float32 ludus::runtime::game_api::RenderParams::Uniform0 = 0
Reserved scalar channels for a future draw path.
The current host validates finiteness but does not render these channels.

Related types: float32

Declared in modules/runtime/game_api/include/ludus/runtime/game_api/services.h

Uniform1

float32 ludus::runtime::game_api::RenderParams::Uniform1 = 0

Related types: float32

Declared in modules/runtime/game_api/include/ludus/runtime/game_api/services.h

Uniform2

float32 ludus::runtime::game_api::RenderParams::Uniform2 = 0

Related types: float32

Declared in modules/runtime/game_api/include/ludus/runtime/game_api/services.h

Uniform3

float32 ludus::runtime::game_api::RenderParams::Uniform3 = 0

Related types: float32

Declared in modules/runtime/game_api/include/ludus/runtime/game_api/services.h