Loading...
Searching...
No Matches
IShaderConstantSetCallBack.h
Go to the documentation of this file.
// Copyright (C) 2002-2012 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#ifndef __I_SHADER_CONSTANT_SET_CALLBACT_H_INCLUDED__
#define __I_SHADER_CONSTANT_SET_CALLBACT_H_INCLUDED__
#include "IReferenceCounted.h"
namespace irr
{
namespace video
{
class IMaterialRendererServices;
class SMaterial;
class IShaderConstantSetCallBack : public virtual IReferenceCounted
{
public:
virtual void OnSetMaterial(const SMaterial& material) { }
virtual void OnSetConstants(IMaterialRendererServices* services, s32 userData) = 0;
};
} // end namespace video
} // end namespace irr
#endif
IReferenceCounted.h
irr::IReferenceCounted::IReferenceCounted
IReferenceCounted()
Constructor.
Definition IReferenceCounted.h:46
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)=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:227
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 aabbox3d.h:13
irr::s32
signed int s32
32 bit signed variable.
Definition irrTypes.h:66
- Irrlicht Engine Documentation © 2003-2012 by Nikolaus Gebhardt. Generated on for Irrlicht 3D Engine by Doxygen 1.15.0