28 #ifndef _CEGUIDirect3D9GeometryBuffer_h_
29 #define _CEGUIDirect3D9GeometryBuffer_h_
31 #include "../../CEGUIGeometryBuffer.h"
32 #include "CEGUIDirect3D9Renderer.h"
33 #include "../../CEGUIRect.h"
39 # pragma warning(push)
40 # pragma warning(disable : 4251)
46 class Direct3D9Texture;
59 const D3DXMATRIX* getMatrix()
const;
63 void setTranslation(
const Vector3& t);
64 void setRotation(
const Vector3& r);
65 void setPivot(
const Vector3& p);
66 void setClippingRegion(
const Rect& region);
67 void appendVertex(
const Vertex& vertex);
68 void appendGeometry(
const Vertex*
const vbuff, uint vertex_count);
69 void setActiveTexture(
Texture* texture);
71 Texture* getActiveTexture()
const;
72 uint getVertexCount()
const;
73 uint getBatchCount()
const;
79 void performBatchManagement();
81 void updateMatrix()
const;
99 typedef std::pair<LPDIRECT3DTEXTURE9, uint>
BatchInfo;
128 #if defined(_MSC_VER)
129 # pragma warning(pop)
132 #endif // end of guard _CEGUIDirect3D9GeometryBuffer_h_
Vector3 d_pivot
pivot point for rotation
Definition: CEGUIDirect3D9GeometryBuffer.h:115
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
std::vector< BatchInfo > BatchList
type of container that tracks BatchInfos.
Definition: CEGUIDirect3D9GeometryBuffer.h:101
internal Vertex structure used for Direct3D based geometry.
Definition: CEGUIDirect3D9GeometryBuffer.h:84
structure that is used to hold details of a single vertex in 3D space.
Definition: CEGUIVertex.h:41
std::vector< D3DVertex > VertexList
type of container used to queue the geometry
Definition: CEGUIDirect3D9GeometryBuffer.h:105
Abstract class defining the interface for objects that buffer geometry for later rendering.
Definition: CEGUIGeometryBuffer.h:42
RenderEffect * d_effect
RenderEffect that will be used by the GeometryBuffer.
Definition: CEGUIDirect3D9GeometryBuffer.h:117
Renderer class to interface with Direct3D 9.
Definition: CEGUIDirect3D9Renderer.h:64
bool d_matrixValid
true when d_matrix is valid and up to date
Definition: CEGUIDirect3D9GeometryBuffer.h:123
Vector3 d_translation
translation vector
Definition: CEGUIDirect3D9GeometryBuffer.h:111
D3DXMATRIX d_matrix
model matrix cache
Definition: CEGUIDirect3D9GeometryBuffer.h:121
Texture implementation for the Direct3D9Renderer.
Definition: CEGUIDirect3D9Texture.h:40
Abstract base class specifying the required interface for Texture objects.
Definition: CEGUITexture.h:50
DWORD diffuse
colour of the vertex.
Definition: CEGUIDirect3D9GeometryBuffer.h:89
Direct3D9Renderer & d_owner
Owning Direct3D9Renderer object.
Definition: CEGUIDirect3D9GeometryBuffer.h:95
Rect d_clipRect
rectangular clip region
Definition: CEGUIDirect3D9GeometryBuffer.h:109
VertexList d_vertices
container where added geometry is stored.
Definition: CEGUIDirect3D9GeometryBuffer.h:107
LPDIRECT3DDEVICE9 d_device
The D3D Device.
Definition: CEGUIDirect3D9GeometryBuffer.h:119
std::pair< LPDIRECT3DTEXTURE9, uint > BatchInfo
type to track info for per-texture sub batches of geometry
Definition: CEGUIDirect3D9GeometryBuffer.h:99
Direct3D9Texture * d_activeTexture
last texture that was set as active
Definition: CEGUIDirect3D9GeometryBuffer.h:97
Vector3 d_rotation
rotation vector
Definition: CEGUIDirect3D9GeometryBuffer.h:113
Direct3D9 based implementation of the GeometryBuffer interface.
Definition: CEGUIDirect3D9GeometryBuffer.h:52
float tu
texture coordinates.
Definition: CEGUIDirect3D9GeometryBuffer.h:91
Class encapsulating operations on a Rectangle.
Definition: CEGUIRect.h:44
BatchList d_batches
list of texture batches added to the geometry buffer
Definition: CEGUIDirect3D9GeometryBuffer.h:103
FLOAT x
The transformed position for the vertex.
Definition: CEGUIDirect3D9GeometryBuffer.h:87