28 #ifndef _CEGUIDirectFBGeometryBuffer_h_
29 #define _CEGUIDirectFBGeometryBuffer_h_
31 #include "../../CEGUIGeometryBuffer.h"
32 #include "../../CEGUIRect.h"
40 class DirectFBRenderer;
41 class DirectFBTexture;
77 typedef std::pair<IDirectFBSurface*, uint>
BatchInfo;
104 #endif // end of guard _CEGUIDirectFBGeometryBuffer_h_
void updateMatrix() const
update cached matrix
uint getVertexCount() const
Return the total number of vertices currently held by this GeometryBuffer object. ...
void setTranslation(const Vector3 &v)
Set the translation to be applied to the geometry in the buffer when it is subsequently rendered...
DirectFBRenderer & d_owner
DirectFBRenderer object that created and owns this GeometryBuffer.
Definition: CEGUIDirectFBGeometryBuffer.h:73
Interface for objects that hook into RenderingWindow to affect the rendering process, thus allowing various effects to be achieved.
Definition: CEGUIRenderEffect.h:41
uint getBatchCount() const
Return the number of batches of geometry that this GeometryBuffer has split the vertices into...
std::vector< BatchInfo > BatchList
type of container that tracks BatchInfos.
Definition: CEGUIDirectFBGeometryBuffer.h:79
Class used as a three dimensional vector.
Definition: CEGUIVector.h:130
void appendVertex(const Vertex &vertex)
Append a single vertex to the buffer.
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
DirectFBGeometryBuffer(DirectFBRenderer &owner)
Constructor.
Rect d_clipRect
rectangular clip region
Definition: CEGUIDirectFBGeometryBuffer.h:87
void setClippingRegion(const Rect ®ion)
Set the clipping region to be used when rendering this buffer.
Vector3 d_translation
translation vector
Definition: CEGUIDirectFBGeometryBuffer.h:89
Abstract base class specifying the required interface for Texture objects.
Definition: CEGUITexture.h:50
void reset()
Clear all buffered data and reset the GeometryBuffer to the default state.
RenderEffect * d_effect
RenderEffect that will be used by the GeometryBuffer.
Definition: CEGUIDirectFBGeometryBuffer.h:95
Implemetation of CEGUI::GeometryBuffer for DirectFB.
Definition: CEGUIDirectFBGeometryBuffer.h:44
std::pair< IDirectFBSurface *, uint > BatchInfo
type to track info for per-texture sub batches of geometry
Definition: CEGUIDirectFBGeometryBuffer.h:77
Implementation of CEGUI::Texture interface using DirectFB.
Definition: CEGUIDirectFBTexture.h:39
Vector3 d_pivot
pivot point for rotation
Definition: CEGUIDirectFBGeometryBuffer.h:93
bool d_matrixValid
true when d_matrix is valid and up to date
Definition: CEGUIDirectFBGeometryBuffer.h:99
Implementation of CEGUI::Renderer interface using DirectFB.
Definition: CEGUIDirectFBRenderer.h:44
void setRenderEffect(RenderEffect *effect)
Set the RenderEffect to be used by this GeometryBuffer.
~DirectFBGeometryBuffer()
Destructor.
Vector3 d_rotation
rotation vector
Definition: CEGUIDirectFBGeometryBuffer.h:91
void setPivot(const Vector3 &p)
Set the pivot point to be used when applying the rotations.
void setActiveTexture(Texture *texture)
Set the active texture to be used with all subsequently added vertices.
VertexList d_vertices
container where added geometry is stored.
Definition: CEGUIDirectFBGeometryBuffer.h:85
void appendGeometry(const Vertex *const vbuff, uint vertex_count)
Append a number of vertices from an array to the GeometryBuffer.
RenderEffect * getRenderEffect()
Return the RenderEffect object that is assigned to this GeometryBuffer or 0 if none.
void draw() const
Draw the geometry buffered within this GeometryBuffer object.
s32 d_matrix[9]
model matrix cache
Definition: CEGUIDirectFBGeometryBuffer.h:97
void setRotation(const Vector3 &r)
Set the rotations to be applied to the geometry in the buffer when it is subsequently rendered...
std::vector< DFBVertex > VertexList
type of container used to queue the geometry
Definition: CEGUIDirectFBGeometryBuffer.h:83
DirectFBTexture * d_activeTexture
last texture that was set as active
Definition: CEGUIDirectFBGeometryBuffer.h:75
Texture * getActiveTexture() const
Return a pointer to the currently active Texture object. This may return 0 if no texture is set...
BatchList d_batches
list of texture batches added to the geometry buffer
Definition: CEGUIDirectFBGeometryBuffer.h:81
Class encapsulating operations on a Rectangle.
Definition: CEGUIRect.h:44