High-level optional structure that groups different render states and shaders together.
Material | High-level optional structure that groups different render states and shaders together. |
shaderProgramHandle | Stores a handle to the linked shader program for OpenGL ES 2.0. |
name | A human-readable string to identify this Material object. |
ctor | |
~dtor | |
SetVertexShader(vertexShader) | Specifies the vertex shader code to use when rendering with this Material. |
SetPixelShader(pixelShader) | Specifies the pixel shader code to use when rendering with this Material. |
SetShaders(...) | Sets both the vertex and pixel shader code to use when rendering with this Material. |
SetRasterizerState(rasterizerState_) | Sets the RasterizerState object to use when rendering with this Material. |
SetDepthState(depthState_) | Sets the DepthState object to use when rendering with this Material. |
SetBlendState(blendState_) | Sets the BlendState object to use when rendering with this Material. |
Deinit() | Frees up all resources associated with this Material and makes it null. |
LinkProgram() | Compiles the vertex and pixel shaders into a GL shader program object. |
Name()[const] | |
Ptr() (+4 overloads) | The vertex shader that is used when rendering with this Material. |
DeserializeFromXml(e) | Loads this Material from an XML file. |