|
libRocket
|
#include <Geometry.h>
Public Member Functions | |
| Geometry (Element *host_element=NULL) | |
| Geometry (Context *host_context) | |
| ~Geometry () | |
| void | SetHostElement (Element *host_element) |
| void | Render (const Vector2f &translation) |
| std::vector< Vertex > & | GetVertices () |
| std::vector< int > & | GetIndices () |
| const Texture * | GetTexture () const |
| void | SetTexture (const Texture *texture) |
| Sets the geometry's texture. More... | |
| void | Release (bool clear_buffers=false) |
A helper object for holding an array of vertices and indices, and compiling it as necessary when rendered.
| Rocket::Core::Geometry::Geometry | ( | Context * | host_context | ) |
| Rocket::Core::Geometry::~Geometry | ( | ) |
| std::vector< int >& Rocket::Core::Geometry::GetIndices | ( | ) |
Returns the geometry's indices. If these are written to, Release() should be called to force a recompile.
| const Texture* Rocket::Core::Geometry::GetTexture | ( | ) | const |
Gets the geometry's texture.
| std::vector< Vertex >& Rocket::Core::Geometry::GetVertices | ( | ) |
Returns the geometry's vertices. If these are written to, Release() should be called to force a recompile.
| void Rocket::Core::Geometry::Release | ( | bool | clear_buffers = false | ) |
Releases any previously-compiled geometry, and forces any new geometry to have a compile attempted.
| [in] | clear_buffers | True to also clear the vertex and index buffers, false to leave intact. |
| void Rocket::Core::Geometry::Render | ( | const Vector2f & | translation | ) |
Attempts to compile the geometry if appropriate, then renders the geometry, compiled if it can.
| [in] | translation | The translation of the geometry. |
| void Rocket::Core::Geometry::SetHostElement | ( | Element * | host_element | ) |
Set the host element for this geometry; this should be passed in the constructor if possible.
| [in] | host_element | The new host element for the geometry. |
| void Rocket::Core::Geometry::SetTexture | ( | const Texture * | texture | ) |
Sets the geometry's texture.
1.8.8