arsa  2.7
IShaderConstantSetCallBack.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2012 Nikolaus Gebhardt
2 // This file is part of the "Irrlicht Engine".
3 // For conditions of distribution and use, see copyright notice in irrlicht.h
4 
5 #ifndef __I_SHADER_CONSTANT_SET_CALLBACT_H_INCLUDED__
6 #define __I_SHADER_CONSTANT_SET_CALLBACT_H_INCLUDED__
7 
8 #include "IReferenceCounted.h"
9 
10 namespace irr
11 {
12 namespace video
13 {
14  class IMaterialRendererServices;
15  class SMaterial;
16 
18 
22 {
23 public:
24 
26 
44  virtual void OnSetMaterial(const SMaterial& material) { }
45 
47 
77  virtual void OnSetConstants(IMaterialRendererServices* services, s32 userData) = 0;
78 };
79 
80 
81 } // end namespace video
82 } // end namespace irr
83 
84 #endif
85 
virtual void OnSetConstants(IMaterialRendererServices *services, s32 userData)=0
Called by the engine when the vertex and/or pixel shader constants for an material renderer should be...
Interface providing some methods for changing advanced, internal states of a IVideoDriver.
Everything in the Irrlicht Engine can be found in this namespace.
Definition: CARSADPad.h:6
signed int s32
32 bit signed variable.
Definition: irrTypes.h:70
Interface making it possible to set constants for gpu programs every frame.
virtual void OnSetMaterial(const SMaterial &material)
Called to let the callBack know the used material (optional method)
Base class of most objects of the Irrlicht Engine.
Struct for holding parameters for a material renderer.
Definition: SMaterial.h:304