Irrlicht 3D Engine
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
21
class
IShaderConstantSetCallBack
:
public
virtual
IReferenceCounted
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
irr::video::IMaterialRendererServices
Interface providing some methods for changing advanced, internal states of a IVideoDriver.
Definition:
IMaterialRendererServices.h:20
IReferenceCounted.h
irr::s32
signed int s32
32 bit signed variable.
Definition:
irrTypes.h:66
irr::video::IShaderConstantSetCallBack::OnSetMaterial
virtual void OnSetMaterial(const SMaterial &material)
Called to let the callBack know the used material (optional method)
Definition:
IShaderConstantSetCallBack.h:44
irr::IReferenceCounted
Base class of most objects of the Irrlicht Engine.
Definition:
IReferenceCounted.h:41
irr
Everything in the Irrlicht Engine can be found in this namespace.
Definition:
aabbox3d.h:12
irr::video::SMaterial
Struct for holding parameters for a material renderer.
Definition:
SMaterial.h:226
irr::video::IShaderConstantSetCallBack::OnSetConstants
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...
irr::video::IShaderConstantSetCallBack
Interface making it possible to set constants for gpu programs every frame.
Definition:
IShaderConstantSetCallBack.h:21
Irrlicht Engine
Documentation © 2003-2012 by Nikolaus Gebhardt. Generated on Mon Apr 25 2022 14:03:04 for Irrlicht 3D Engine by
Doxygen
1.8.17