Crazy Eddie's GUI System
0.8.2
|
GeometryBuffer implementation for the Irrlicht engine. More...
Classes | |
struct | BatchInfo |
type to track info for per-texture sub batches of geometry More... | |
Public Member Functions | |
IrrlichtGeometryBuffer (irr::video::IVideoDriver &driver) | |
constructor | |
const irr::core::matrix4 & | getMatrix () const |
return the transformation matrix used for this buffer. | |
irr::video::SMaterial & | getMaterial () |
return reference to the Irrlicht material used with this GeometryBuffer. | |
const irr::video::SMaterial & | getMaterial () const |
return reference to the Irrlicht material used with this GeometryBuffer. | |
void | draw () const |
Draw the geometry buffered within this GeometryBuffer object. | |
void | setTranslation (const Vector3f &v) |
Set the translation to be applied to the geometry in the buffer when it is subsequently rendered. More... | |
void | setRotation (const Quaternion &r) |
Set the rotations to be applied to the geometry in the buffer when it is subsequently rendered. More... | |
void | setPivot (const Vector3f &p) |
Set the pivot point to be used when applying the rotations. More... | |
void | setClippingRegion (const Rectf ®ion) |
Set the clipping region to be used when rendering this buffer. | |
void | appendVertex (const Vertex &vertex) |
Append a single vertex to the buffer. More... | |
void | appendGeometry (const Vertex *const vbuff, uint vertex_count) |
Append a number of vertices from an array to the GeometryBuffer. More... | |
void | setActiveTexture (Texture *texture) |
Set the active texture to be used with all subsequently added vertices. More... | |
void | reset () |
Clear all buffered data and reset the GeometryBuffer to the default state. | |
Texture * | getActiveTexture () const |
Return a pointer to the currently active Texture object. This may return 0 if no texture is set. More... | |
uint | getVertexCount () const |
Return the total number of vertices currently held by this GeometryBuffer object. More... | |
uint | getBatchCount () const |
Return the number of batches of geometry that this GeometryBuffer has split the vertices into. More... | |
void | setRenderEffect (RenderEffect *effect) |
Set the RenderEffect to be used by this GeometryBuffer. More... | |
RenderEffect * | getRenderEffect () |
Return the RenderEffect object that is assigned to this GeometryBuffer or 0 if none. | |
void | setClippingActive (const bool active) |
Set whether clipping will be active for subsequently added vertices. More... | |
bool | isClippingActive () const |
void | setBlendMode (const BlendMode mode) |
Set the blend mode option to use when rendering this GeometryBuffer. More... | |
Public Member Functions inherited from CEGUI::GeometryBuffer | |
virtual | ~GeometryBuffer () |
Destructor. | |
virtual BlendMode | getBlendMode () const |
Return the blend mode that is set to be used for this GeometryBuffer. More... | |
Protected Types | |
typedef std::vector< BatchInfo > | BatchList |
type of container that tracks BatchInfos. | |
typedef std::vector < irr::video::S3DVertex > | VertexList |
type of container used to queue the geometry | |
typedef std::vector< irr::u16 > | IndexList |
type of container used for indexes | |
Protected Member Functions | |
void | updateMatrix () const |
update cached matrix | |
void | setupClipping () const |
void | cleanupClipping () const |
Protected Member Functions inherited from CEGUI::GeometryBuffer | |
GeometryBuffer () | |
Constructor. | |
Protected Attributes | |
irr::video::IVideoDriver & | d_driver |
Irrlicht video driver we're to use. | |
IrrlichtTexture * | d_activeTexture |
Texture that is set as active. | |
irr::video::SMaterial | d_material |
material used with the texture for rendering. | |
Rectf | d_clipRect |
rectangular clip region | |
bool | d_clippingActive |
whether clipping will be active for the current batch | |
irr::core::vector3d< irr::f32 > | d_translation |
translation vector | |
irr::core::quaternion | d_rotation |
rotation quaternion | |
irr::core::vector3d< irr::f32 > | d_pivot |
pivot point for rotation | |
RenderEffect * | d_effect |
RenderEffect that will be used by the GeometryBuffer. | |
irr::core::matrix4 | d_matrix |
model matrix cache | |
bool | d_matrixValid |
true when d_matrix is valid and up to date | |
BatchList | d_batches |
list of texture batches added to the geometry buffer | |
VertexList | d_vertices |
container where added geometry vertices are stored. | |
IndexList | d_indices |
container where added geometry indices are stored. | |
const float | d_xViewDir |
a coefficient used to handle OpenGL / D3D projection variations. | |
const float | d_texelOffset |
an offset applied to geometry to get correct texel to pixel mapping. | |
irr::core::rect< irr::s32 > | d_savedViewport |
viewport that was set prior to us initialising clipping | |
irr::core::matrix4 | d_savedProjection |
projection transform that was set priot to us initialising clipping | |
Protected Attributes inherited from CEGUI::GeometryBuffer | |
BlendMode | d_blendMode |
The BlendMode to use when rendering this GeometryBuffer. | |
GeometryBuffer implementation for the Irrlicht engine.
|
virtual |
Append a number of vertices from an array to the GeometryBuffer.
vbuff | Pointer to an array of Vertex objects that describe the vertices that are to be added to the GeometryBuffer. |
vertex_count | The number of Vertex objects from the array vbuff that are to be added to the GeometryBuffer. |
Implements CEGUI::GeometryBuffer.
|
virtual |
Append a single vertex to the buffer.
vertex | Vertex object describing the vertex to be added to the GeometryBuffer. |
Implements CEGUI::GeometryBuffer.
|
virtual |
Return a pointer to the currently active Texture object. This may return 0 if no texture is set.
Implements CEGUI::GeometryBuffer.
|
virtual |
Return the number of batches of geometry that this GeometryBuffer has split the vertices into.
Implements CEGUI::GeometryBuffer.
|
virtual |
Return the total number of vertices currently held by this GeometryBuffer object.
Implements CEGUI::GeometryBuffer.
|
virtual |
Set the active texture to be used with all subsequently added vertices.
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.
|
virtual |
Set the blend mode option to use when rendering this GeometryBuffer.
mode | One of the BlendMode enumerated values indicating the blending mode to be used. |
Reimplemented from CEGUI::GeometryBuffer.
|
virtual |
Set whether clipping will be active for subsequently added vertices.
active |
|
Implements CEGUI::GeometryBuffer.
|
virtual |
Set the pivot point to be used when applying the rotations.
p | Vector3 describing the location of the pivot point to be used when applying the rotation to the geometry. |
Implements CEGUI::GeometryBuffer.
|
virtual |
Set the RenderEffect to be used by this GeometryBuffer.
effect | Pointer to the RenderEffect to be used during renderng of the GeometryBuffer. May be 0 to remove a previously added RenderEffect. |
Implements CEGUI::GeometryBuffer.
|
virtual |
Set the rotations to be applied to the geometry in the buffer when it is subsequently rendered.
r | Quaternion describing the rotation to be used. |
Implements CEGUI::GeometryBuffer.
|
virtual |
Set the translation to be applied to the geometry in the buffer when it is subsequently rendered.
v | Vector3 describing the three axis translation vector to be used. |
Implements CEGUI::GeometryBuffer.