5#ifndef NIRT_I_MATERIAL_RENDERER_SERVICES_HPP_INCLUDED
6#define NIRT_I_MATERIAL_RENDERER_SERVICES_HPP_INCLUDED
8#include <nirtcpp/core/engine/SMaterial.hpp>
9#include <nirtcpp/core/engine/S3DVertex.hpp>
39 bool resetAllRenderstates) = 0;
Interface providing some methods for changing advanced, internal states of a IVideoDriver.
Definition IMaterialRendererServices.hpp:21
virtual IVideoDriver * getVideoDriver()=0
Get pointer to the IVideoDriver interface.
virtual bool setPixelShaderConstant(s32 index, const f32 *floats, int count)=0
Sets a constant for the pixel shader based on a name.
NIRT_DEPRECATED bool setVertexShaderConstant(const c8 *name, const s32 *ints, int count)
Definition IMaterialRendererServices.hpp:121
NIRT_DEPRECATED bool setPixelShaderConstant(const c8 *name, const f32 *floats, int count)
Definition IMaterialRendererServices.hpp:127
virtual s32 getPixelShaderConstantID(const c8 *name)=0
Return an index constant for the pixel shader based on a name.
NIRT_DEPRECATED bool setPixelShaderConstant(const c8 *name, const s32 *ints, int count)
Definition IMaterialRendererServices.hpp:133
virtual ~IMaterialRendererServices()
Destructor.
Definition IMaterialRendererServices.hpp:25
virtual void setBasicRenderStates(const SMaterial &material, const SMaterial &lastMaterial, bool resetAllRenderstates)=0
Can be called by an IMaterialRenderer to make its work easier.
virtual bool setPixelShaderConstant(s32 index, const s32 *ints, int count)=0
Int interface for the above.
virtual void setVertexShaderConstant(const f32 *data, s32 startRegister, s32 constantAmount=1)=0
Sets a vertex shader constant.
virtual void setPixelShaderConstant(const f32 *data, s32 startRegister, s32 constantAmount=1)=0
Sets a pixel shader constant.
virtual bool setVertexShaderConstant(s32 index, const u32 *ints, int count)=0
Uint interface for the above.
virtual bool setVertexShaderConstant(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 bool setVertexShaderConstant(s32 index, const f32 *floats, int count)=0
Sets a constant for the vertex shader based on a name.
NIRT_DEPRECATED bool setVertexShaderConstant(const c8 *name, const f32 *floats, int count)
Definition IMaterialRendererServices.hpp:115
virtual s32 getVertexShaderConstantID(const c8 *name)=0
Return an index constant for the vertex shader based on a name.
Interface to driver which is able to perform 2d and 3d graphics functions.
Definition IVideoDriver.hpp:152
Class for holding parameters for a material renderer.
Definition SMaterial.hpp:304
As of Nirtcpp 1.6, position2d is a synonym for vector2d.
Definition vector3d.hpp:11
signed int s32
32 bit signed variable.
Definition irrTypes.hpp:72
unsigned int u32
32 bit unsigned variable.
Definition irrTypes.hpp:64
char c8
8 bit character variable.
Definition irrTypes.hpp:37
float f32
32 bit floating point variable.
Definition irrTypes.hpp:110