Skylicht Engine
Toggle main menu visibility
Loading...
Searching...
No Matches
Irrlicht
Include
IShaderConstantSetCallBack.h
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,
bool
updateTransform =
true
) = 0;
78
};
79
80
81
}
// end namespace video
82
}
// end namespace irr
83
84
#endif
85
irr::IReferenceCounted::IReferenceCounted
IReferenceCounted()
Constructor.
Definition
IReferenceCounted.h:50
irr::video::IMaterialRendererServices
Interface providing some methods for changing advanced, internal states of a IVideoDriver.
Definition
IMaterialRendererServices.h:21
irr::video::IShaderConstantSetCallBack
Interface making it possible to set constants for gpu programs every frame.
Definition
IShaderConstantSetCallBack.h:22
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::video::IShaderConstantSetCallBack::OnSetConstants
virtual void OnSetConstants(IMaterialRendererServices *services, s32 userData, bool updateTransform=true)=0
Called by the engine when the vertex and/or pixel shader constants for an material renderer should be...
irr::video::SMaterial
Struct for holding parameters for a material renderer.
Definition
SMaterial.h:255
irr::video
The video namespace contains classes for accessing the video driver. All 2d and 3d rendering is done ...
Definition
EDriverFeatures.h:11
irr
Everything in the Irrlicht Engine can be found in this namespace.
Definition
Skylicht.h:33
irr::s32
signed int s32
32 bit signed variable.
Definition
irrTypes.h:66
Generated by
1.17.0