Crazy Eddie's GUI System
0.8.1
|
Abstract class defining the interface for objects that buffer geometry for later rendering. More...
Inherits CEGUI::AllocatedObject< GeometryBuffer >.
Inherited by CEGUI::Direct3D10GeometryBuffer, CEGUI::Direct3D11GeometryBuffer, CEGUI::Direct3D9GeometryBuffer, CEGUI::DirectFBGeometryBuffer, CEGUI::IrrlichtGeometryBuffer, CEGUI::NullGeometryBuffer, CEGUI::OgreGeometryBuffer, CEGUI::OpenGLESGeometryBuffer, and CEGUI::OpenGLGeometryBufferBase.
Public Member Functions | |
virtual | ~GeometryBuffer () |
Destructor. | |
virtual void | draw () const =0 |
Draw the geometry buffered within this GeometryBuffer object. | |
virtual void | setTranslation (const Vector3f &v)=0 |
Set the translation to be applied to the geometry in the buffer when it is subsequently rendered. More... | |
virtual void | setRotation (const Quaternion &r)=0 |
Set the rotations to be applied to the geometry in the buffer when it is subsequently rendered. More... | |
virtual void | setPivot (const Vector3f &p)=0 |
Set the pivot point to be used when applying the rotations. More... | |
virtual void | setClippingRegion (const Rectf ®ion)=0 |
Set the clipping region to be used when rendering this buffer. | |
virtual void | appendVertex (const Vertex &vertex)=0 |
Append a single vertex to the buffer. More... | |
virtual void | appendGeometry (const Vertex *const vbuff, uint vertex_count)=0 |
Append a number of vertices from an array to the GeometryBuffer. More... | |
virtual void | setActiveTexture (Texture *texture)=0 |
Set the active texture to be used with all subsequently added vertices. More... | |
virtual void | reset ()=0 |
Clear all buffered data and reset the GeometryBuffer to the default state. | |
virtual Texture * | getActiveTexture () const =0 |
Return a pointer to the currently active Texture object. This may return 0 if no texture is set. More... | |
virtual uint | getVertexCount () const =0 |
Return the total number of vertices currently held by this GeometryBuffer object. More... | |
virtual uint | getBatchCount () const =0 |
Return the number of batches of geometry that this GeometryBuffer has split the vertices into. More... | |
virtual void | setRenderEffect (RenderEffect *effect)=0 |
Set the RenderEffect to be used by this GeometryBuffer. More... | |
virtual RenderEffect * | getRenderEffect ()=0 |
Return the RenderEffect object that is assigned to this GeometryBuffer or 0 if none. | |
virtual void | setBlendMode (const BlendMode mode) |
Set the blend mode option to use when rendering this GeometryBuffer. More... | |
virtual BlendMode | getBlendMode () const |
Return the blend mode that is set to be used for this GeometryBuffer. More... | |
virtual void | setClippingActive (const bool active)=0 |
Set whether clipping will be active for subsequently added vertices. More... | |
virtual bool | isClippingActive () const =0 |
Protected Member Functions | |
GeometryBuffer () | |
Constructor. | |
Protected Attributes | |
BlendMode | d_blendMode |
The BlendMode to use when rendering this GeometryBuffer. | |
Abstract class defining the interface for objects that buffer geometry for later rendering.
|
pure 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. |
Implemented in CEGUI::OgreGeometryBuffer, CEGUI::IrrlichtGeometryBuffer, CEGUI::Direct3D9GeometryBuffer, CEGUI::Direct3D10GeometryBuffer, CEGUI::Direct3D11GeometryBuffer, CEGUI::OpenGLGeometryBufferBase, CEGUI::OpenGLESGeometryBuffer, CEGUI::NullGeometryBuffer, CEGUI::DirectFBGeometryBuffer, and CEGUI::OpenGL3GeometryBuffer.
|
pure virtual |
Append a single vertex to the buffer.
vertex | Vertex object describing the vertex to be added to the GeometryBuffer. |
Implemented in CEGUI::OgreGeometryBuffer, CEGUI::IrrlichtGeometryBuffer, CEGUI::Direct3D9GeometryBuffer, CEGUI::Direct3D10GeometryBuffer, CEGUI::Direct3D11GeometryBuffer, CEGUI::OpenGLGeometryBufferBase, CEGUI::OpenGLESGeometryBuffer, CEGUI::NullGeometryBuffer, and CEGUI::DirectFBGeometryBuffer.
|
pure virtual |
Return a pointer to the currently active Texture object. This may return 0 if no texture is set.
Implemented in CEGUI::OgreGeometryBuffer, CEGUI::IrrlichtGeometryBuffer, CEGUI::Direct3D9GeometryBuffer, CEGUI::Direct3D10GeometryBuffer, CEGUI::Direct3D11GeometryBuffer, CEGUI::OpenGLGeometryBufferBase, CEGUI::OpenGLESGeometryBuffer, CEGUI::NullGeometryBuffer, and CEGUI::DirectFBGeometryBuffer.
|
pure virtual |
Return the number of batches of geometry that this GeometryBuffer has split the vertices into.
Implemented in CEGUI::OgreGeometryBuffer, CEGUI::IrrlichtGeometryBuffer, CEGUI::Direct3D9GeometryBuffer, CEGUI::Direct3D10GeometryBuffer, CEGUI::Direct3D11GeometryBuffer, CEGUI::OpenGLGeometryBufferBase, CEGUI::OpenGLESGeometryBuffer, CEGUI::NullGeometryBuffer, and CEGUI::DirectFBGeometryBuffer.
|
virtual |
Return the blend mode that is set to be used for this GeometryBuffer.
|
pure virtual |
Return the total number of vertices currently held by this GeometryBuffer object.
Implemented in CEGUI::OgreGeometryBuffer, CEGUI::IrrlichtGeometryBuffer, CEGUI::Direct3D9GeometryBuffer, CEGUI::Direct3D10GeometryBuffer, CEGUI::Direct3D11GeometryBuffer, CEGUI::OpenGLGeometryBufferBase, CEGUI::OpenGLESGeometryBuffer, CEGUI::NullGeometryBuffer, and CEGUI::DirectFBGeometryBuffer.
|
pure 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. |
Implemented in CEGUI::OgreGeometryBuffer, CEGUI::IrrlichtGeometryBuffer, CEGUI::Direct3D9GeometryBuffer, CEGUI::Direct3D10GeometryBuffer, CEGUI::Direct3D11GeometryBuffer, CEGUI::OpenGLGeometryBufferBase, CEGUI::OpenGLESGeometryBuffer, CEGUI::NullGeometryBuffer, and CEGUI::DirectFBGeometryBuffer.
|
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 in CEGUI::IrrlichtGeometryBuffer.
|
pure virtual |
Set whether clipping will be active for subsequently added vertices.
active |
|
Implemented in CEGUI::OgreGeometryBuffer, CEGUI::IrrlichtGeometryBuffer, CEGUI::Direct3D9GeometryBuffer, CEGUI::Direct3D10GeometryBuffer, CEGUI::Direct3D11GeometryBuffer, CEGUI::OpenGLGeometryBufferBase, CEGUI::NullGeometryBuffer, and CEGUI::DirectFBGeometryBuffer.
|
pure 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. |
Implemented in CEGUI::OgreGeometryBuffer, CEGUI::IrrlichtGeometryBuffer, CEGUI::Direct3D9GeometryBuffer, CEGUI::Direct3D10GeometryBuffer, CEGUI::Direct3D11GeometryBuffer, CEGUI::OpenGLGeometryBufferBase, CEGUI::OpenGLESGeometryBuffer, CEGUI::NullGeometryBuffer, and CEGUI::DirectFBGeometryBuffer.
|
pure 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. |
Implemented in CEGUI::OgreGeometryBuffer, CEGUI::IrrlichtGeometryBuffer, CEGUI::Direct3D9GeometryBuffer, CEGUI::Direct3D10GeometryBuffer, CEGUI::Direct3D11GeometryBuffer, CEGUI::OpenGLGeometryBufferBase, CEGUI::OpenGLESGeometryBuffer, CEGUI::NullGeometryBuffer, and CEGUI::DirectFBGeometryBuffer.
|
pure 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. |
Implemented in CEGUI::OgreGeometryBuffer, CEGUI::IrrlichtGeometryBuffer, CEGUI::Direct3D9GeometryBuffer, CEGUI::Direct3D10GeometryBuffer, CEGUI::Direct3D11GeometryBuffer, CEGUI::OpenGLGeometryBufferBase, CEGUI::OpenGLESGeometryBuffer, CEGUI::NullGeometryBuffer, and CEGUI::DirectFBGeometryBuffer.
|
pure 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. |
Implemented in CEGUI::OgreGeometryBuffer, CEGUI::IrrlichtGeometryBuffer, CEGUI::Direct3D9GeometryBuffer, CEGUI::Direct3D10GeometryBuffer, CEGUI::Direct3D11GeometryBuffer, CEGUI::OpenGLGeometryBufferBase, CEGUI::OpenGLESGeometryBuffer, CEGUI::NullGeometryBuffer, and CEGUI::DirectFBGeometryBuffer.