5#ifndef DCPP_I_MATERIAL_RENDERER_SERVICES_HPP_INCLUDED
6#define DCPP_I_MATERIAL_RENDERER_SERVICES_HPP_INCLUDED
8#include <duckcpp/core/engine/SMaterial.hpp>
9#include <duckcpp/core/engine/S3DVertex.hpp>
39 bool resetAllRenderstates) = 0;
Interface providing some methods for changing advanced, internal states of a IVideoDriver.
Definition IMaterialRendererServices.hpp:21
DCPP_DEPRECATED bool setVertexShaderConstant(const dcpp::char_kt *name, const dcpp::int32_kt *ints, int count)
Definition IMaterialRendererServices.hpp:121
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.
DCPP_DEPRECATED bool setVertexShaderConstant(const dcpp::char_kt *name, const dcpp::float32_kt *floats, int count)
Definition IMaterialRendererServices.hpp:115
virtual bool setPixelShaderConstant(dcpp::int32_kt index, const dcpp::uint32_kt *ints, int count)=0
Uint interface for the above.
virtual ~IMaterialRendererServices()
Destructor.
Definition IMaterialRendererServices.hpp:25
DCPP_DEPRECATED bool setPixelShaderConstant(const dcpp::char_kt *name, const dcpp::float32_kt *floats, int count)
Definition IMaterialRendererServices.hpp:127
virtual bool setPixelShaderConstant(dcpp::int32_kt index, const dcpp::int32_kt *ints, int count)=0
Int 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 void setBasicRenderStates(const SMaterial &material, const SMaterial &lastMaterial, bool resetAllRenderstates)=0
Can be called by an IMaterialRenderer to make its work easier.
DCPP_DEPRECATED bool setPixelShaderConstant(const dcpp::char_kt *name, const dcpp::int32_kt *ints, int count)
Definition IMaterialRendererServices.hpp:133
virtual IVideoDriver * getVideoDriver()=0
Get pointer to the IVideoDriver interface.
virtual bool setVertexShaderConstant(dcpp::int32_kt index, const dcpp::int32_kt *ints, int count)=0
Int 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.
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 setVertexShaderConstant(dcpp::int32_kt index, const dcpp::uint32_kt *ints, int count)=0
Uint interface for the above.
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 Duckcpp 1.6, position2d is a synonym for vector2d.
Definition shared_device.hpp:34
char char_kt
8 bit character variable.
Definition irrTypes.hpp:37
unsigned int uint32_kt
32 bit unsigned variable.
Definition irrTypes.hpp:64
float float32_kt
32 bit floating point variable.
Definition irrTypes.hpp:108
signed int int32_kt
32 bit signed variable.
Definition irrTypes.hpp:72