Implementation of CEGUI::GeometryBuffer for the Null engine.
More...
#include <GeometryBuffer.h>
|
typedef std::vector< Vertex > | VertexList |
| type of container used to queue the geometry
|
|
|
| GeometryBuffer () |
| Constructor.
|
|
Implementation of CEGUI::GeometryBuffer for the Null engine.
◆ appendGeometry()
void CEGUI::NullGeometryBuffer::appendGeometry |
( |
const Vertex *const | vbuff, |
|
|
uint | vertex_count ) |
|
virtual |
◆ appendVertex()
void CEGUI::NullGeometryBuffer::appendVertex |
( |
const Vertex & | vertex | ) |
|
|
virtual |
◆ draw()
void CEGUI::NullGeometryBuffer::draw |
( |
| ) |
const |
|
virtual |
◆ getActiveTexture()
Texture * CEGUI::NullGeometryBuffer::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.
◆ getBatchCount()
uint CEGUI::NullGeometryBuffer::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.
◆ getRenderEffect()
RenderEffect * CEGUI::NullGeometryBuffer::getRenderEffect |
( |
| ) |
|
|
virtual |
◆ getVertexCount()
uint CEGUI::NullGeometryBuffer::getVertexCount |
( |
| ) |
const |
|
virtual |
◆ isClippingActive()
bool CEGUI::NullGeometryBuffer::isClippingActive |
( |
| ) |
const |
|
virtual |
◆ reset()
void CEGUI::NullGeometryBuffer::reset |
( |
| ) |
|
|
virtual |
◆ setActiveTexture()
void CEGUI::NullGeometryBuffer::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.
◆ setClippingActive()
void CEGUI::NullGeometryBuffer::setClippingActive |
( |
const bool | active | ) |
|
|
virtual |
Set whether clipping will be active for subsequently added vertices.
- Parameters
-
active |
- true if vertices added after this call should be clipped to the clipping region defined for this GeometryBuffer.
- false if vertices added after this call should not be clipped (other than to the edges of rendering target.
|
Implements CEGUI::GeometryBuffer.
◆ setClippingRegion()
void CEGUI::NullGeometryBuffer::setClippingRegion |
( |
const Rectf & | region | ) |
|
|
virtual |
◆ setPivot()
void CEGUI::NullGeometryBuffer::setPivot |
( |
const Vector3f & | 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.
◆ setRenderEffect()
void CEGUI::NullGeometryBuffer::setRenderEffect |
( |
RenderEffect * | effect | ) |
|
|
virtual |
◆ setRotation()
void CEGUI::NullGeometryBuffer::setRotation |
( |
const Quaternion & | r | ) |
|
|
virtual |
Set the rotations to be applied to the geometry in the buffer when it is subsequently rendered.
- Parameters
-
Implements CEGUI::GeometryBuffer.
◆ setTranslation()
void CEGUI::NullGeometryBuffer::setTranslation |
( |
const Vector3f & | 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.