RenderWare::CompiledState struct

Public types

enum class Flags: uint32_t { UseTransform = 0x01, UseTransformObject = 0x02, UseShaderConstants = 0x08, UseMaterialColor = 0x10, UseAmbientColor = 0x20, UseVertexDescription = 0x100000, UseBooleans = 0x8000 }
enum class Flags3: uint32_t { UseTextureSlots = 0xDFFFF, UseRenderStates = 0x20000 }

Public static variables

static const uint32_t TYPE

Public functions

void Load()
auto GetRaster(size_t nSlotIndex) -> Raster*
void SetRaster(size_t nSlotIndex, Raster* pRaster)
auto SetTransform(const Math::Matrix4& matrix, Graphics::GlobalState::MatrixType type = Graphics::GlobalState::MATRIXTYPE_ORTHOGONAL) -> bool
Sets the matrix transform, only if it is enabled for this compiled state.
auto GetData() -> char*

Public variables

int instancedSize
int primitiveType
int softStateDirty
int softStateDelta
int hardStateDirty
int hardStateDelta
Graphics::MaterialShader* shader

Function documentation

bool RenderWare::CompiledState::SetTransform(const Math::Matrix4& matrix, Graphics::GlobalState::MatrixType type = Graphics::GlobalState::MATRIXTYPE_ORTHOGONAL)

Sets the matrix transform, only if it is enabled for this compiled state.

Returns false if it wasn't enabled.