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