Nirtcpp 2.1.0
Nirtcpp is a high-performance c++ graphics engine.
Loading...
Searching...
No Matches
IShaderConstantSetCallBack.hpp
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 nirtcpp/nirtcpp.hpp
4
5#ifndef NIRT_I_SHADER_CONSTANT_SET_CALLBACT_HPP_INCLUDED
6#define NIRT_I_SHADER_CONSTANT_SET_CALLBACT_HPP_INCLUDED
7
8#include <nirtcpp/core/engine/IReferenceCounted.hpp>
9
10namespace nirt
11{
12namespace video
13{
14 class IMaterialRendererServices;
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 nirt
83
84#endif
Base class of most objects of the Nirtcpp Engine.
Definition IReferenceCounted.hpp:46
Interface providing some methods for changing advanced, internal states of a IVideoDriver.
Definition IMaterialRendererServices.hpp:21
Interface making it possible to set constants for gpu programs every frame.
Definition IShaderConstantSetCallBack.hpp:22
virtual void OnSetMaterial(const SMaterial &material)
Called to let the callBack know the used material (optional method)
Definition IShaderConstantSetCallBack.hpp:44
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...
Class for holding parameters for a material renderer.
Definition SMaterial.hpp:304
As of Nirtcpp 1.6, position2d is a synonym for vector2d.
Definition vector3d.hpp:11
signed int s32
32 bit signed variable.
Definition irrTypes.hpp:72

Nirtcpp    @cppfx.xyz

Esvcpp    esv::print