27 #ifndef _CEGUIDirect3D11GeometryBuffer_h_
28 #define _CEGUIDirect3D11GeometryBuffer_h_
30 #include "../../CEGUIGeometryBuffer.h"
31 #include "CEGUIDirect3D11Renderer.h"
32 #include "../../CEGUIRect.h"
38 # pragma warning(push)
39 # pragma warning(disable : 4251)
45 class Direct3D11Texture;
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 ID3D11ShaderResourceView*, uint>
BatchInfo;
138 #if defined(_MSC_VER)
139 # pragma warning(pop)
142 #endif // end of guard _CEGUIDirect3D11GeometryBuffer_h_
D3DXMATRIX d_matrix
model matrix cache
Definition: CEGUIDirect3D11GeometryBuffer.h:130
Interface for objects that hook into RenderingWindow to affect the rendering process, thus allowing various effects to be achieved.
Definition: CEGUIRenderEffect.h:41
internal Vertex structure used for Direct3D based geometry.
Definition: CEGUIDirect3D11GeometryBuffer.h:87
VertexList d_vertices
container where added geometry is stored.
Definition: CEGUIDirect3D11GeometryBuffer.h:118
Class used as a three dimensional vector.
Definition: CEGUIVector.h:130
RenderEffect * d_effect
RenderEffect that will be used by the GeometryBuffer.
Definition: CEGUIDirect3D11GeometryBuffer.h:128
Direct3D11Texture * d_activeTexture
last texture that was set as active
Definition: CEGUIDirect3D11GeometryBuffer.h:102
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
std::pair< const ID3D11ShaderResourceView *, uint > BatchInfo
type to track info for per-texture sub batches of geometry
Definition: CEGUIDirect3D11GeometryBuffer.h:110
FLOAT x
The transformed position for the vertex.
Definition: CEGUIDirect3D11GeometryBuffer.h:90
BatchList d_batches
list of texture batches added to the geometry buffer
Definition: CEGUIDirect3D11GeometryBuffer.h:114
DWORD diffuse
colour of the vertex.
Definition: CEGUIDirect3D11GeometryBuffer.h:92
Vector3 d_translation
translation vector
Definition: CEGUIDirect3D11GeometryBuffer.h:122
Definition: CEGUIDirect3D11Renderer.h:66
bool d_matrixValid
true when d_matrix is valid and up to date
Definition: CEGUIDirect3D11GeometryBuffer.h:132
Abstract base class specifying the required interface for Texture objects.
Definition: CEGUITexture.h:50
bool d_bufferSynched
whether the h/w buffer is in sync with the added geometry
Definition: CEGUIDirect3D11GeometryBuffer.h:108
Vector3 d_rotation
rotation vector
Definition: CEGUIDirect3D11GeometryBuffer.h:124
std::vector< D3DVertex > VertexList
type of container used to queue the geometry
Definition: CEGUIDirect3D11GeometryBuffer.h:116
Renderer implementation using Direct3D 10.
Definition: CEGUIDirect3D11Renderer.h:82
Implementation of CEGUI::GeometryBuffer for the Direct3D 10 API.
Definition: CEGUIDirect3D11GeometryBuffer.h:48
std::vector< BatchInfo > BatchList
type of container that tracks BatchInfos.
Definition: CEGUIDirect3D11GeometryBuffer.h:112
Rect d_clipRect
rectangular clip region
Definition: CEGUIDirect3D11GeometryBuffer.h:120
IDevice11 & d_device
The D3D Device.
Definition: CEGUIDirect3D11GeometryBuffer.h:100
Texture implementation for the Direct3D11Renderer.
Definition: CEGUIDirect3D11Texture.h:47
ID3D11Buffer * d_vertexBuffer
hardware buffer where vertices will be drawn from.
Definition: CEGUIDirect3D11GeometryBuffer.h:104
UINT d_bufferSize
Size of the currently allocated vertex buffer.
Definition: CEGUIDirect3D11GeometryBuffer.h:106
float tu
texture coordinates.
Definition: CEGUIDirect3D11GeometryBuffer.h:94
Vector3 d_pivot
pivot point for rotation
Definition: CEGUIDirect3D11GeometryBuffer.h:126
Class encapsulating operations on a Rectangle.
Definition: CEGUIRect.h:44