Implemetation of CEGUI::GeometryBuffer for DirectFB.
More...
|
typedef std::pair
< IDirectFBSurface *, uint > | BatchInfo |
| type to track info for per-texture sub batches of geometry
|
|
typedef std::vector< BatchInfo > | BatchList |
| type of container that tracks BatchInfos.
|
|
typedef std::vector< DFBVertex > | VertexList |
| type of container used to queue the geometry
|
|
Implemetation of CEGUI::GeometryBuffer for DirectFB.
void CEGUI::DirectFBGeometryBuffer::appendGeometry |
( |
const Vertex *const |
vbuff, |
|
|
uint |
vertex_count |
|
) |
| |
|
virtual |
void CEGUI::DirectFBGeometryBuffer::appendVertex |
( |
const Vertex & |
vertex | ) |
|
|
virtual |
Texture* CEGUI::DirectFBGeometryBuffer::getActiveTexture |
( |
| ) |
const |
|
virtual |
Return a pointer to the currently active Texture object. This may return 0 if no texture is set.
- Returns
- Pointer the Texture object that is currently active, or 0 if texturing is not being used.
Implements CEGUI::GeometryBuffer.
uint CEGUI::DirectFBGeometryBuffer::getBatchCount |
( |
| ) |
const |
|
virtual |
Return the number of batches of geometry that this GeometryBuffer has split the vertices into.
- Note
- How batching is done will be largely implementation specific, although it would be reasonable to expect that you will have at least one batch of geometry per texture switch.
- Returns
- The number of batches of geometry held by the GeometryBuffer.
Implements CEGUI::GeometryBuffer.
uint CEGUI::DirectFBGeometryBuffer::getVertexCount |
( |
| ) |
const |
|
virtual |
void CEGUI::DirectFBGeometryBuffer::setActiveTexture |
( |
Texture * |
texture | ) |
|
|
virtual |
Set the active texture to be used with all subsequently added vertices.
- Parameters
-
texture | Pointer to a Texture object that shall be used for subsequently added vertices. This may be 0, in which case texturing will be disabled for subsequently added vertices. |
Implements CEGUI::GeometryBuffer.
void CEGUI::DirectFBGeometryBuffer::setPivot |
( |
const Vector3 & |
p | ) |
|
|
virtual |
Set the pivot point to be used when applying the rotations.
- Parameters
-
p | Vector3 describing the location of the pivot point to be used when applying the rotation to the geometry. |
Implements CEGUI::GeometryBuffer.
void CEGUI::DirectFBGeometryBuffer::setRenderEffect |
( |
RenderEffect * |
effect | ) |
|
|
virtual |
void CEGUI::DirectFBGeometryBuffer::setRotation |
( |
const Vector3 & |
r | ) |
|
|
virtual |
Set the rotations to be applied to the geometry in the buffer when it is subsequently rendered.
- Parameters
-
r | Vector3 describing the rotation factors to be used. |
Implements CEGUI::GeometryBuffer.
void CEGUI::DirectFBGeometryBuffer::setTranslation |
( |
const Vector3 & |
v | ) |
|
|
virtual |
Set the translation to be applied to the geometry in the buffer when it is subsequently rendered.
- Parameters
-
v | Vector3 describing the three axis translation vector to be used. |
Implements CEGUI::GeometryBuffer.