5#ifndef __I_MATERIAL_RENDERER_H_INCLUDED__
6#define __I_MATERIAL_RENDERER_H_INCLUDED__
8#include "IReferenceCounted.h"
12#include "EShaderTypes.h"
100 virtual void setShaderVariable(
s32 id,
const f32 *value,
int count, E_SHADER_TYPE shaderType) {}
IReferenceCounted()
Constructor.
Definition IReferenceCounted.h:50
Interface for material rendering.
Definition IMaterialRenderer.h:27
virtual bool OnRender(IMaterialRendererServices *service, bool updateConstant)
Called every time before a new bunch of geometry is being drawn using this material with for example ...
Definition IMaterialRenderer.h:73
virtual s32 getRenderCapability() const
Returns the render capability of the material.
Definition IMaterialRenderer.h:95
virtual void OnUnsetMaterial()
Called by the IVideoDriver to unset this material.
Definition IMaterialRenderer.h:78
virtual s32 getShaderVariableID(const c8 *name, E_SHADER_TYPE shaderType)
Shader variable function.
Definition IMaterialRenderer.h:98
virtual bool isTransparent() const
Returns if the material is transparent.
Definition IMaterialRenderer.h:83
virtual void OnSetMaterial(const SMaterial &material, const SMaterial &lastMaterial, bool resetAllRenderstates, IMaterialRendererServices *services)
Called by the IVideoDriver implementation the let the renderer set its needed render states.
Definition IMaterialRenderer.h:52
Interface providing some methods for changing advanced, internal states of a IVideoDriver.
Definition IMaterialRendererServices.h:21
Interface to driver which is able to perform 2d and 3d graphics functions.
Definition IVideoDriver.h:388
Struct for holding parameters for a material renderer.
Definition SMaterial.h:255
The video namespace contains classes for accessing the video driver. All 2d and 3d rendering is done ...
Definition EDriverFeatures.h:11
Everything in the Irrlicht Engine can be found in this namespace.
Definition Skylicht.h:33
float f32
32 bit floating point variable.
Definition irrTypes.h:104
char c8
8 bit character variable.
Definition irrTypes.h:31
signed int s32
32 bit signed variable.
Definition irrTypes.h:66