Irrlicht 3D Engine
Loading...
Searching...
No Matches
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
10namespace irr
11{
12namespace video
13{
15 class SMaterial;
16
18
22{
23public:
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
IReferenceCounted()
Constructor.
Interface providing some methods for changing advanced, internal states of a IVideoDriver.
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).
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...
Struct for holding parameters for a material renderer.
Definition SMaterial.h:227
The video namespace contains classes for accessing the video driver. All 2d and 3d rendering is done ...
Everything in the Irrlicht Engine can be found in this namespace.
Definition aabbox3d.h:13
signed int s32
32 bit signed variable.
Definition irrTypes.h:66