Loading...
Searching...
No Matches
IMaterialRenderer.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_MATERIAL_RENDERER_H_INCLUDED__
#define __I_MATERIAL_RENDERER_H_INCLUDED__
#include "IReferenceCounted.h"
#include "SMaterial.h"
#include "S3DVertex.h"
namespace irr
{
namespace video
{
class IVideoDriver;
class IMaterialRendererServices;
class IMaterialRenderer : public virtual IReferenceCounted
{
public:
virtual void OnSetMaterial(const SMaterial& material, const SMaterial& lastMaterial,
bool resetAllRenderstates, IMaterialRendererServices* services) {}
virtual bool OnRender(IMaterialRendererServices* service, E_VERTEX_TYPE vtxtype) { return true; }
virtual void OnUnsetMaterial() {}
virtual bool isTransparent() const { return false; }
virtual s32 getRenderCapability() const { return 0; }
};
} // end namespace video
} // end namespace irr
#endif
IReferenceCounted.h
S3DVertex.h
SMaterial.h
irr::IReferenceCounted::IReferenceCounted
IReferenceCounted()
Constructor.
Definition IReferenceCounted.h:46
irr::video::IMaterialRenderer
Interface for material rendering.
Definition IMaterialRenderer.h:25
irr::video::IMaterialRenderer::getRenderCapability
virtual s32 getRenderCapability() const
Returns the render capability of the material.
Definition IMaterialRenderer.h:93
irr::video::IMaterialRenderer::OnUnsetMaterial
virtual void OnUnsetMaterial()
Called by the IVideoDriver to unset this material.
Definition IMaterialRenderer.h:76
irr::video::IMaterialRenderer::OnRender
virtual bool OnRender(IMaterialRendererServices *service, E_VERTEX_TYPE vtxtype)
Called every time before a new bunch of geometry is being drawn using this material with for example ...
Definition IMaterialRenderer.h:71
irr::video::IMaterialRenderer::isTransparent
virtual bool isTransparent() const
Returns if the material is transparent.
Definition IMaterialRenderer.h:81
irr::video::IMaterialRenderer::OnSetMaterial
virtual void OnSetMaterial(const SMaterial &material, const SMaterial &lastMaterial, bool resetAllRenderstates, IMaterialRendererServices *services)
Called by the IVideoDriver implementation the let the renderer set its needed render states.
Definition IMaterialRenderer.h:50
irr::video::IMaterialRendererServices
Interface providing some methods for changing advanced, internal states of a IVideoDriver.
Definition IMaterialRendererServices.h:21
irr::video::IVideoDriver
Interface to driver which is able to perform 2d and 3d graphics functions.
Definition IVideoDriver.h:257
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::video::E_VERTEX_TYPE
E_VERTEX_TYPE
Enumeration for all vertex types there are.
Definition S3DVertex.h:19
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