28 #ifndef _CEGUIDirect3D10GeometryBuffer_h_
29 #define _CEGUIDirect3D10GeometryBuffer_h_
31 #include "../../CEGUIGeometryBuffer.h"
32 #include "CEGUIDirect3D10Renderer.h"
33 #include "../../CEGUIRect.h"
38 # pragma warning(push)
39 # pragma warning(disable : 4251)
45 class Direct3D10Texture;
58 const D3DXMATRIX* getMatrix()
const;
62 void setTranslation(
const Vector3& v);
63 void setRotation(
const Vector3& r);
64 void setPivot(
const Vector3& p);
65 void setClippingRegion(
const Rect& region);
66 void appendVertex(
const Vertex& vertex);
67 void appendGeometry(
const Vertex*
const vbuff, uint vertex_count);
68 void setActiveTexture(
Texture* texture);
70 Texture* getActiveTexture()
const;
71 uint getVertexCount()
const;
72 uint getBatchCount()
const;
78 void updateMatrix()
const;
80 void syncHardwareBuffer()
const;
82 void allocateVertexBuffer(
const size_t count)
const;
84 void cleanupVertexBuffer()
const;
110 typedef std::pair<const ID3D10ShaderResourceView*, uint>
BatchInfo;
138 #if defined(_MSC_VER)
139 # pragma warning(pop)
142 #endif // end of guard _CEGUIDirect3D10GeometryBuffer_h_
float tu
texture coordinates.
Definition: CEGUIDirect3D10GeometryBuffer.h:94
internal Vertex structure used for Direct3D based geometry.
Definition: CEGUIDirect3D10GeometryBuffer.h:87
RenderEffect * d_effect
RenderEffect that will be used by the GeometryBuffer.
Definition: CEGUIDirect3D10GeometryBuffer.h:128
Interface for objects that hook into RenderingWindow to affect the rendering process, thus allowing various effects to be achieved.
Definition: CEGUIRenderEffect.h:41
Rect d_clipRect
rectangular clip region
Definition: CEGUIDirect3D10GeometryBuffer.h:120
Class used as a three dimensional vector.
Definition: CEGUIVector.h:130
VertexList d_vertices
container where added geometry is stored.
Definition: CEGUIDirect3D10GeometryBuffer.h:118
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
DWORD diffuse
colour of the vertex.
Definition: CEGUIDirect3D10GeometryBuffer.h:92
ID3D10Device & d_device
The D3D Device.
Definition: CEGUIDirect3D10GeometryBuffer.h:100
ID3D10Buffer * d_vertexBuffer
hardware buffer where vertices will be drawn from.
Definition: CEGUIDirect3D10GeometryBuffer.h:104
Texture implementation for the Direct3D10Renderer.
Definition: CEGUIDirect3D10Texture.h:45
Abstract base class specifying the required interface for Texture objects.
Definition: CEGUITexture.h:50
D3DXMATRIX d_matrix
model matrix cache
Definition: CEGUIDirect3D10GeometryBuffer.h:130
Vector3 d_rotation
rotation vector
Definition: CEGUIDirect3D10GeometryBuffer.h:124
Vector3 d_translation
translation vector
Definition: CEGUIDirect3D10GeometryBuffer.h:122
UINT d_bufferSize
Size of the currently allocated vertex buffer.
Definition: CEGUIDirect3D10GeometryBuffer.h:106
BatchList d_batches
list of texture batches added to the geometry buffer
Definition: CEGUIDirect3D10GeometryBuffer.h:114
std::vector< D3DVertex > VertexList
type of container used to queue the geometry
Definition: CEGUIDirect3D10GeometryBuffer.h:116
Direct3D10Texture * d_activeTexture
last texture that was set as active
Definition: CEGUIDirect3D10GeometryBuffer.h:102
std::vector< BatchInfo > BatchList
type of container that tracks BatchInfos.
Definition: CEGUIDirect3D10GeometryBuffer.h:112
bool d_bufferSynched
whether the h/w buffer is in sync with the added geometry
Definition: CEGUIDirect3D10GeometryBuffer.h:108
FLOAT x
The transformed position for the vertex.
Definition: CEGUIDirect3D10GeometryBuffer.h:90
Renderer implementation using Direct3D 10.
Definition: CEGUIDirect3D10Renderer.h:68
Implementation of CEGUI::GeometryBuffer for the Direct3D 10 API.
Definition: CEGUIDirect3D10GeometryBuffer.h:48
Vector3 d_pivot
pivot point for rotation
Definition: CEGUIDirect3D10GeometryBuffer.h:126
bool d_matrixValid
true when d_matrix is valid and up to date
Definition: CEGUIDirect3D10GeometryBuffer.h:132
std::pair< const ID3D10ShaderResourceView *, uint > BatchInfo
type to track info for per-texture sub batches of geometry
Definition: CEGUIDirect3D10GeometryBuffer.h:110
Class encapsulating operations on a Rectangle.
Definition: CEGUIRect.h:44