Graphics::StandardShader class

Base classes

class MaterialShader

Public static functions

static auto Load(RenderWare::Mesh* mesh) -> BOOL
This function is called when rendering a mesh, before the DrawIndexedPrimitives is called.

Constructors, destructors, conversion operators

StandardShader()

Public functions

auto Release() -> int
void Reset()
auto Read(IO::IStream* pStream, uint32_t shaderID, int version) -> bool

Protected variables

intrusive_ptr<IDirect3DVertexShader9> mVertexShaders
intrusive_ptr<IDirect3DPixelShader9> mPixelShaders
vector<ShaderDataUniform> mVertexShaderData
vector<ShaderDataUniform> mPixelShaderData

Function documentation

static BOOL Graphics::StandardShader::Load(RenderWare::Mesh* mesh)

This function is called when rendering a mesh, before the DrawIndexedPrimitives is called.

This function is responsible of loading the shaders into DirectX.