A simple class providing basic methods to generate vertices with.
More...
#include <simplerenderer.h>
A simple class providing basic methods to generate vertices with.
Definition at line 55 of file simplerenderer.h.
void Mezzanine::UI::SimpleRenderer::_AppendVertices |
( |
std::vector< VertexData > & |
Vertices | ) |
|
Appends the vertices of this renderable to another vector.
- Parameters
-
Vertices | The vector of vertex's to append to. |
Definition at line 156 of file simplerenderer.cpp.
Boole Mezzanine::UI::SimpleRenderer::_IsDirty |
( |
| ) |
|
Gets whether or not this renderer is dirty.
- Returns
- Returns true if this renderer is dirty, false otherwise.
Definition at line 142 of file simplerenderer.cpp.
virtual void Mezzanine::UI::SimpleRenderer::_MarkDirty |
( |
| ) |
|
|
pure virtual |
void Mezzanine::UI::SimpleRenderer::_Redraw |
( |
Boole |
Force | ) |
|
Regenerates the verticies in this renderable.
- Parameters
-
Force | If true this will force this object to redraw it's verticies regardless of whether it is dirty. |
Definition at line 147 of file simplerenderer.cpp.
String Mezzanine::UI::SimpleRenderer::GetDerivedSerializableName |
( |
| ) |
const |
|
virtual |
String Mezzanine::UI::SimpleRenderer::GetPrimaryAtlas |
( |
| ) |
const |
|
virtual |
Gets the currently set primary atlas.
- Returns
- Returns a string containing the name of the primary atlas that is set, or an empty string if none.
Definition at line 84 of file simplerenderer.cpp.
String Mezzanine::UI::SimpleRenderer::GetSerializableName |
( |
| ) |
|
|
static |
Get the name of the the XML tag the Renderable class will leave behind as its instances are serialized.
- Returns
- A string containing the name of this class.
Definition at line 136 of file simplerenderer.cpp.
void Mezzanine::UI::SimpleRenderer::ProtoDeSerialize |
( |
const XML::Node & |
SelfRoot | ) |
|
|
virtual |
void Mezzanine::UI::SimpleRenderer::ProtoDeSerializeProperties |
( |
const XML::Node & |
SelfRoot | ) |
|
|
virtual |
void Mezzanine::UI::SimpleRenderer::ProtoSerialize |
( |
XML::Node & |
ParentNode | ) |
const |
|
virtual |
void Mezzanine::UI::SimpleRenderer::ProtoSerializeProperties |
( |
XML::Node & |
SelfRoot | ) |
const |
|
virtual |
Pushes vertex information for a triangle to a vector. Equivalent to calling "PushVertex" three times.
- Note
- This is primarily useful when your Vertices aren't using an actual image for their rendering due to the reuse of the UV.
- Parameters
-
A | The position of the first vertex. |
B | The position of the second vertex. |
C | The position of the third vertex. |
UV | The texture coordinates to be appended to all three vertices. |
Colour | The colour for all 3 vertices to be appended. |
Atlas | The name of the Atlas to use for the UV coordinates. |
Definition at line 71 of file simplerenderer.cpp.
Collects all the relevant information for a single vertex and pushes it to a vector.
- Parameters
-
X | The vertex position on the X axis. |
Y | The vertex position on the Y axis. |
UV | The Vertex texture coordinates. |
Colour | The Vertex colour. |
Atlas | The name of the Atlas to use for the UV coordinates. |
Definition at line 59 of file simplerenderer.cpp.
virtual void Mezzanine::UI::SimpleRenderer::RedrawImpl |
( |
Boole |
Force | ) |
|
|
protectedpure virtual |
void Mezzanine::UI::SimpleRenderer::SetPrimaryAtlas |
( |
const String & |
Atlas | ) |
|
|
virtual |
Sets the Atlas to be assumed when one isn't provided for atlas related tasks.
- Parameters
-
Atlas | The name of the atlas to be used. |
Definition at line 81 of file simplerenderer.cpp.
Boole Mezzanine::UI::SimpleRenderer::Dirty |
|
protected |
This determines whether or not the vertices in this renderer need to be refreshed.
Definition at line 60 of file simplerenderer.h.
String Mezzanine::UI::SimpleRenderer::PriAtlas |
|
protected |
This contains the name of the atlas that will be used as default when one isn't specified.
Definition at line 63 of file simplerenderer.h.
std::vector<VertexData> Mezzanine::UI::SimpleRenderer::RenderVertices |
|
protected |
This is a container storing all the vertices generated by this renderer.
Definition at line 66 of file simplerenderer.h.
The documentation for this class was generated from the following files: