27 #ifndef _CEGUIOgreGeometryBuffer_h_
28 #define _CEGUIOgreGeometryBuffer_h_
30 #include "CEGUI/GeometryBuffer.h"
31 #include "CEGUI/RendererModules/Ogre/Renderer.h"
32 #include "CEGUI/Rect.h"
33 #include "CEGUI/Quaternion.h"
35 #include <OgreMatrix4.h>
36 #include <OgreColourValue.h>
37 #include <OgreRenderOperation.h>
38 #include <OgreTexture.h>
43 #ifdef CEGUI_USE_OGRE_HLMS
44 #include <OgreRenderable.h>
66 const Ogre::Matrix4& getMatrix()
const;
69 virtual void draw()
const;
70 virtual void setTranslation(
const Vector3f& v);
72 virtual void setPivot(
const Vector3f& p);
73 virtual void setClippingRegion(
const Rectf& region);
74 virtual void appendVertex(
const Vertex& vertex);
75 virtual void appendGeometry(
const Vertex*
const vbuff, uint vertex_count);
76 virtual void setActiveTexture(
Texture* texture);
78 virtual Texture* getActiveTexture()
const;
79 virtual uint getVertexCount()
const;
80 virtual uint getBatchCount()
const;
83 void setClippingActive(
const bool active);
84 bool isClippingActive()
const;
88 Ogre::RGBA colourToOgre(
const Colour& col)
const;
90 void updateMatrix()
const;
92 void syncHardwareBuffer()
const;
94 void initialiseTextureStates()
const;
107 Ogre::TexturePtr texture;
136 #ifdef CEGUI_USE_OGRE_HLMS
137 mutable Ogre::v1::RenderOperation d_renderOp;
140 mutable Ogre::v1::HardwareVertexBufferSharedPtr d_hwBuffer;
142 mutable Ogre::RenderOperation d_renderOp;
162 #endif // end of guard _CEGUIOgreGeometryBuffer_h_
Rectf d_clipRect
rectangular clip region
Definition: RendererModules/Ogre/GeometryBuffer.h:119
Ogre::HardwareVertexBufferSharedPtr d_hwBuffer
H/W buffer where the vertices are rendered from.
Definition: RendererModules/Ogre/GeometryBuffer.h:145
CEGUI::Renderer implementation for the Ogre engine.
Definition: RendererModules/Ogre/Renderer.h:91
Interface for objects that hook into RenderingWindow to affect the rendering process, thus allowing various effects to be achieved.
Definition: RenderEffect.h:40
Implementation of CEGUI::GeometryBuffer for the Ogre engine.
Definition: RendererModules/Ogre/GeometryBuffer.h:57
bool d_clippingActive
whether clipping will be active for the current batch
Definition: RendererModules/Ogre/GeometryBuffer.h:121
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
structure that is used to hold details of a single vertex in 3D space.
Definition: Vertex.h:40
std::vector< OgreVertex > VertexList
type of container used to queue the geometry
Definition: RendererModules/Ogre/GeometryBuffer.h:154
Abstract class defining the interface for objects that buffer geometry for later rendering.
Definition: GeometryBuffer.h:42
std::vector< BatchInfo > BatchList
type of container that tracks BatchInfos.
Definition: RendererModules/Ogre/GeometryBuffer.h:150
Ogre::Matrix4 d_matrix
model matrix cache
Definition: RendererModules/Ogre/GeometryBuffer.h:133
Quaternion d_rotation
rotation quaternion
Definition: RendererModules/Ogre/GeometryBuffer.h:125
VertexList d_vertices
container where added geometry is stored.
Definition: RendererModules/Ogre/GeometryBuffer.h:156
Ogre::RenderSystem & d_renderSystem
Ogre render system we're to use.
Definition: RendererModules/Ogre/GeometryBuffer.h:115
Vector3f d_translation
translation vector
Definition: RendererModules/Ogre/GeometryBuffer.h:123
Vector2f d_texelOffset
offset to be applied to all geometry
Definition: RendererModules/Ogre/GeometryBuffer.h:131
Abstract base class specifying the required interface for Texture objects.
Definition: Texture.h:52
type to track info for per-texture sub batches of geometry
Definition: RendererModules/Ogre/GeometryBuffer.h:105
OgreTexture * d_activeTexture
Texture that is set as active.
Definition: RendererModules/Ogre/GeometryBuffer.h:117
BatchList d_batches
list of texture batches added to the geometry buffer
Definition: RendererModules/Ogre/GeometryBuffer.h:152
Implementation of the CEGUI::Texture class for the Ogre engine.
Definition: RendererModules/Ogre/Texture.h:38
Definition: RendererModules/Ogre/GeometryBuffer.h:48
vertex structure used internally and also by Ogre.
Definition: RendererModules/Ogre/GeometryBuffer.h:97
Class representing colour values within the system.
Definition: Colour.h:44
Class to represent rotation, avoids Gimbal lock.
Definition: Quaternion.h:67
RenderEffect * d_effect
RenderEffect that will be used by the GeometryBuffer.
Definition: RendererModules/Ogre/GeometryBuffer.h:129
bool d_matrixValid
true when d_matrix is valid and up to date
Definition: RendererModules/Ogre/GeometryBuffer.h:135
OgreRenderer & d_owner
Renderer object that owns this GeometryBuffer.
Definition: RendererModules/Ogre/GeometryBuffer.h:113
Vector3f d_pivot
pivot point for rotation
Definition: RendererModules/Ogre/GeometryBuffer.h:127