|
virtual | ~IMaterialRendererServices () |
| Destructor.
|
|
virtual void | setBasicRenderStates (const SMaterial &material, const SMaterial &lastMaterial, bool resetAllRenderstates)=0 |
| Can be called by an IMaterialRenderer to make its work easier.
|
|
virtual dcpp::int32_kt | getVertexShaderConstantID (const dcpp::char_kt *name)=0 |
| Return an index constant for the vertex shader based on a name.
|
|
virtual bool | setVertexShaderConstant (dcpp::int32_kt index, const dcpp::float32_kt *floats, int count)=0 |
| Sets a constant for the vertex shader based on a name.
|
|
virtual bool | setVertexShaderConstant (dcpp::int32_kt index, const dcpp::int32_kt *ints, int count)=0 |
| Int interface for the above.
|
|
virtual bool | setVertexShaderConstant (dcpp::int32_kt index, const dcpp::uint32_kt *ints, int count)=0 |
| Uint interface for the above.
|
|
virtual void | setVertexShaderConstant (const dcpp::float32_kt *data, dcpp::int32_kt startRegister, dcpp::int32_kt constantAmount=1)=0 |
| Sets a vertex shader constant.
|
|
virtual dcpp::int32_kt | getPixelShaderConstantID (const dcpp::char_kt *name)=0 |
| Return an index constant for the pixel shader based on a name.
|
|
virtual bool | setPixelShaderConstant (dcpp::int32_kt index, const dcpp::float32_kt *floats, int count)=0 |
| Sets a constant for the pixel shader based on a name.
|
|
virtual bool | setPixelShaderConstant (dcpp::int32_kt index, const dcpp::int32_kt *ints, int count)=0 |
| Int interface for the above.
|
|
virtual bool | setPixelShaderConstant (dcpp::int32_kt index, const dcpp::uint32_kt *ints, int count)=0 |
| Uint interface for the above.
|
|
virtual void | setPixelShaderConstant (const dcpp::float32_kt *data, dcpp::int32_kt startRegister, dcpp::int32_kt constantAmount=1)=0 |
| Sets a pixel shader constant.
|
|
DCPP_DEPRECATED bool | setVertexShaderConstant (const dcpp::char_kt *name, const dcpp::float32_kt *floats, int count) |
|
DCPP_DEPRECATED bool | setVertexShaderConstant (const dcpp::char_kt *name, const dcpp::int32_kt *ints, int count) |
|
DCPP_DEPRECATED bool | setPixelShaderConstant (const dcpp::char_kt *name, const dcpp::float32_kt *floats, int count) |
|
DCPP_DEPRECATED bool | setPixelShaderConstant (const dcpp::char_kt *name, const dcpp::int32_kt *ints, int count) |
|
virtual IVideoDriver * | getVideoDriver ()=0 |
| Get pointer to the IVideoDriver interface.
|
|
Interface providing some methods for changing advanced, internal states of a IVideoDriver.
virtual void dcpp::video::IMaterialRendererServices::setBasicRenderStates |
( |
const SMaterial & |
material, |
|
|
const SMaterial & |
lastMaterial, |
|
|
bool |
resetAllRenderstates |
|
) |
| |
|
pure virtual |
Can be called by an IMaterialRenderer to make its work easier.
Sets all basic renderstates if needed. Basic render states are diffuse, ambient, specular, and emissive color, specular power, bilinear and trilinear filtering, wireframe mode, gouraudshading, lighting, zbuffer, zwriteenable, backfaceculling and fog enabling.
- Parameters
-
material | The new material to be used. |
lastMaterial | The material used until now. |
resetAllRenderstates | Set to true if all renderstates should be set, regardless of their current state. |