28 #ifndef _CEGUIIrrlichtGeometryBuffer_h_
29 #define _CEGUIIrrlichtGeometryBuffer_h_
31 #include "CEGUIIrrlichtRendererDef.h"
32 #include "../../CEGUIGeometryBuffer.h"
33 #include "../../CEGUIRect.h"
34 #include "../../CEGUIVector.h"
39 # pragma warning(push)
40 # pragma warning(disable : 4251)
46 class IrrlichtTexture;
56 const irr::core::matrix4& getMatrix()
const;
59 irr::video::SMaterial& getMaterial();
61 const irr::video::SMaterial& getMaterial()
const;
66 void setTranslation(
const Vector3& v);
67 void setRotation(
const Vector3& r);
68 void setPivot(
const Vector3& p);
69 void setClippingRegion(
const Rect& region);
70 void appendVertex(
const Vertex& vertex);
71 void appendGeometry(
const Vertex*
const vbuff, uint vertex_count);
72 void setActiveTexture(
Texture* texture);
74 Texture* getActiveTexture()
const;
75 uint getVertexCount()
const;
76 uint getBatchCount()
const;
82 void updateMatrix()
const;
105 typedef std::pair<irr::video::ITexture*, uint>
BatchInfo;
127 #if defined(_MSC_VER)
128 # pragma warning(pop)
131 #endif // end of guard _CEGUIIrrlichtGeometryBuffer_h_
Rect d_clipRect
rectangular clip region
Definition: CEGUIIrrlichtGeometryBuffer.h:91
irr::core::matrix4 d_matrix
model matrix cache
Definition: CEGUIIrrlichtGeometryBuffer.h:101
irr::core::vector3d< irr::f32 > d_pivot
pivot point for rotation
Definition: CEGUIIrrlichtGeometryBuffer.h:97
IrrlichtTexture * d_activeTexture
Texture that is set as active.
Definition: CEGUIIrrlichtGeometryBuffer.h:87
Interface for objects that hook into RenderingWindow to affect the rendering process, thus allowing various effects to be achieved.
Definition: CEGUIRenderEffect.h:41
Class used as a three dimensional vector.
Definition: CEGUIVector.h:130
irr::video::SMaterial d_material
material used with the texture for rendering.
Definition: CEGUIIrrlichtGeometryBuffer.h:89
irr::core::vector3d< irr::f32 > d_translation
translation vector
Definition: CEGUIIrrlichtGeometryBuffer.h:93
RenderEffect * d_effect
RenderEffect that will be used by the GeometryBuffer.
Definition: CEGUIIrrlichtGeometryBuffer.h:99
structure that is used to hold details of a single vertex in 3D space.
Definition: CEGUIVertex.h:41
Abstract class defining the interface for objects that buffer geometry for later rendering.
Definition: CEGUIGeometryBuffer.h:42
irr::core::vector3d< irr::f32 > d_rotation
rotation vector
Definition: CEGUIIrrlichtGeometryBuffer.h:95
GeometryBuffer implementation for the Irrlicht engine.
Definition: CEGUIIrrlichtGeometryBuffer.h:49
VertexList d_vertices
container where added geometry vertices are stored.
Definition: CEGUIIrrlichtGeometryBuffer.h:115
Implementation of the CEGUI::Texture class for the Irrlicht engine.
Definition: CEGUIIrrlichtTexture.h:50
irr::video::IVideoDriver & d_driver
Irrlicht video driver we're to use.
Definition: CEGUIIrrlichtGeometryBuffer.h:85
std::pair< irr::video::ITexture *, uint > BatchInfo
type to track info for per-texture sub batches of geometry
Definition: CEGUIIrrlichtGeometryBuffer.h:105
Abstract base class specifying the required interface for Texture objects.
Definition: CEGUITexture.h:50
std::vector< BatchInfo > BatchList
type of container that tracks BatchInfos.
Definition: CEGUIIrrlichtGeometryBuffer.h:107
IndexList d_indices
container where added geometry indices are stored.
Definition: CEGUIIrrlichtGeometryBuffer.h:117
const float d_texelOffset
an offset applied to geometry to get correct texel to pixel mapping.
Definition: CEGUIIrrlichtGeometryBuffer.h:121
BatchList d_batches
list of texture batches added to the geometry buffer
Definition: CEGUIIrrlichtGeometryBuffer.h:113
std::vector< irr::video::S3DVertex > VertexList
type of container used to queue the geometry
Definition: CEGUIIrrlichtGeometryBuffer.h:109
const float d_xViewDir
a coefficient used to handle OpenGL / D3D projection variations.
Definition: CEGUIIrrlichtGeometryBuffer.h:119
bool d_matrixValid
true when d_matrix is valid and up to date
Definition: CEGUIIrrlichtGeometryBuffer.h:103
std::vector< irr::u16 > IndexList
type of container used for indexes
Definition: CEGUIIrrlichtGeometryBuffer.h:111
Class encapsulating operations on a Rectangle.
Definition: CEGUIRect.h:44