|
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 i32 | getVertexShaderConstantID (const c8 *name)=0 |
| Return an index constant for the vertex shader based on a name.
|
|
virtual bool | setVertexShaderConstant (i32 index, const f32 *floats, int count)=0 |
| Sets a constant for the vertex shader based on a name.
|
|
virtual bool | setVertexShaderConstant (i32 index, const i32 *ints, int count)=0 |
| Int interface for the above.
|
|
virtual bool | setVertexShaderConstant (i32 index, const u32 *ints, int count)=0 |
| Uint interface for the above.
|
|
virtual void | setVertexShaderConstant (const f32 *data, i32 startRegister, i32 constantAmount=1)=0 |
| Sets a vertex shader constant.
|
|
virtual i32 | getPixelShaderConstantID (const c8 *name)=0 |
| Return an index constant for the pixel shader based on a name.
|
|
virtual bool | setPixelShaderConstant (i32 index, const f32 *floats, int count)=0 |
| Sets a constant for the pixel shader based on a name.
|
|
virtual bool | setPixelShaderConstant (i32 index, const i32 *ints, int count)=0 |
| Int interface for the above.
|
|
virtual bool | setPixelShaderConstant (i32 index, const u32 *ints, int count)=0 |
| Uint interface for the above.
|
|
virtual void | setPixelShaderConstant (const f32 *data, i32 startRegister, i32 constantAmount=1)=0 |
| Sets a pixel shader constant.
|
|
DCPP_DEPRECATED bool | setVertexShaderConstant (const c8 *name, const f32 *floats, int count) |
|
DCPP_DEPRECATED bool | setVertexShaderConstant (const c8 *name, const i32 *ints, int count) |
|
DCPP_DEPRECATED bool | setPixelShaderConstant (const c8 *name, const f32 *floats, int count) |
|
DCPP_DEPRECATED bool | setPixelShaderConstant (const c8 *name, const i32 *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. |