27 #ifndef _CEGUIOpenGLESGeometryBuffer_h_
28 #define _CEGUIOpenGLESGeometryBuffer_h_
30 #include "CEGUI/GeometryBuffer.h"
31 #include "CEGUI/RendererModules/OpenGLES/Renderer.h"
32 #include "CEGUI/Rect.h"
33 #include "CEGUI/Quaternion.h"
39 # pragma warning(push)
40 # pragma warning(disable : 4251)
46 class OpenGLESTexture;
60 void setTranslation(
const Vector3f& t);
63 void setClippingRegion(
const Rectf& region);
64 void appendVertex(
const Vertex& vertex);
65 void appendGeometry(
const Vertex*
const vbuff, uint vertex_count);
66 void setActiveTexture(
Texture* texture);
68 Texture* getActiveTexture()
const;
69 uint getVertexCount()
const;
70 uint getBatchCount()
const;
73 void setClippingActive(
const bool active);
74 bool isClippingActive()
const;
77 const float* getMatrix()
const;
81 void performBatchManagement();
84 void updateMatrix()
const;
119 mutable float d_matrix[16];
127 #if defined(_MSC_VER)
128 # pragma warning(pop)
131 #endif // end of guard _CEGUIOpenGLESGeometryBuffer_h_
RenderEffect * d_effect
RenderEffect that will be used by the GeometryBuffer.
Definition: RendererModules/OpenGLES/GeometryBuffer.h:117
Interface for objects that hook into RenderingWindow to affect the rendering process, thus allowing various effects to be achieved.
Definition: RenderEffect.h:40
bool d_clippingActive
whether clipping will be active for the current batch
Definition: RendererModules/OpenGLES/GeometryBuffer.h:109
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
internal Vertex structure used for GL based geometry.
Definition: RendererModules/OpenGLES/GeometryBuffer.h:87
structure that is used to hold details of a single vertex in 3D space.
Definition: Vertex.h:40
Abstract class defining the interface for objects that buffer geometry for later rendering.
Definition: GeometryBuffer.h:42
OpenGLES based implementation of the GeometryBuffer interface.
Definition: RendererModules/OpenGLES/GeometryBuffer.h:52
Vector3f d_pivot
pivot point for rotation
Definition: RendererModules/OpenGLES/GeometryBuffer.h:115
bool d_matrixValid
true when d_matrix is valid and up to date
Definition: RendererModules/OpenGLES/GeometryBuffer.h:121
Rectf d_clipRect
rectangular clip region
Definition: RendererModules/OpenGLES/GeometryBuffer.h:107
std::pair< uint, uint > BatchInfo
type to track info for per-texture sub batches of geometry
Definition: RendererModules/OpenGLES/GeometryBuffer.h:97
Abstract base class specifying the required interface for Texture objects.
Definition: Texture.h:52
VertexList d_vertices
container where added geometry is stored.
Definition: RendererModules/OpenGLES/GeometryBuffer.h:105
OpenGLESTexture * d_activeTexture
last texture that was set as active
Definition: RendererModules/OpenGLES/GeometryBuffer.h:95
Texture implementation for the OpenGLESRenderer.
Definition: RendererModules/OpenGLES/Texture.h:39
std::vector< BatchInfo > BatchList
type of container that tracks BatchInfos.
Definition: RendererModules/OpenGLES/GeometryBuffer.h:99
Class to represent rotation, avoids Gimbal lock.
Definition: Quaternion.h:67
Quaternion d_rotation
rotation quaternion
Definition: RendererModules/OpenGLES/GeometryBuffer.h:113
Vector3f d_translation
translation vector
Definition: RendererModules/OpenGLES/GeometryBuffer.h:111
std::vector< GLVertex > VertexList
type of container used to queue the geometry
Definition: RendererModules/OpenGLES/GeometryBuffer.h:103
BatchList d_batches
list of texture batches added to the geometry buffer
Definition: RendererModules/OpenGLES/GeometryBuffer.h:101