RenderWare::TextureSlot struct

Structure used to configure textures in a CompiledState.

The benefit of this structure is that it keeps track of the previous of the state, and restores it once the TextureSlot object is destroyed.

Constructors, destructors, conversion operators

TextureSlot()
~TextureSlot()

Public functions

auto SetTexture(CompiledState* compiledState, int slotIndex, Raster* raster) -> void
Sets one texture of a compiled state, storing the previous texture in this slot so it can be restored later.

Public variables

CompiledState* compiledState
int slotIndex
Raster* raster
Raster* originalRaster

Function documentation

void RenderWare::TextureSlot::SetTexture(CompiledState* compiledState, int slotIndex, Raster* raster)

Sets one texture of a compiled state, storing the previous texture in this slot so it can be restored later.

Parameters
compiledState
slotIndex
raster

slotIndex is the number used to reference the texture inside the shader.