40 #ifndef _uiquadrenderer_cpp
41 #define _uiquadrenderer_cpp
43 #include "UI/quadrenderer.h"
59 PushVertex(Positions[3].X,Positions[3].Y,UVs[3],Colours[3],Atlas);
60 PushVertex(Positions[1].X,Positions[1].Y,UVs[1],Colours[1],Atlas);
61 PushVertex(Positions[0].X,Positions[0].Y,UVs[0],Colours[0],Atlas);
63 PushVertex(Positions[3].X,Positions[3].Y,UVs[3],Colours[3],Atlas);
64 PushVertex(Positions[2].X,Positions[2].Y,UVs[2],Colours[2],Atlas);
65 PushVertex(Positions[1].X,Positions[1].Y,UVs[1],Colours[1],Atlas);
70 PushVertex(Positions[3].X,Positions[3].Y,UVs[3],Colour,Atlas);
71 PushVertex(Positions[1].X,Positions[1].Y,UVs[1],Colour,Atlas);
72 PushVertex(Positions[0].X,Positions[0].Y,UVs[0],Colour,Atlas);
74 PushVertex(Positions[3].X,Positions[3].Y,UVs[3],Colour,Atlas);
75 PushVertex(Positions[2].X,Positions[2].Y,UVs[2],Colour,Atlas);
76 PushVertex(Positions[1].X,Positions[1].Y,UVs[1],Colour,Atlas);
99 return "QuadRenderer";
virtual String GetDerivedSerializableName() const
Gets the most derived serializable name of this Renderable.
virtual ~QuadRenderer()
Class destructor.
virtual void PushQuad2(Vector2 *Positions, Vector2 *UVs, const ColourValue &Colour, const String &Atlas)
Pushes vertex information for a quad to a vector. Equivalent to calling "PushTriangle" twice...
This is a simple class for holding 4 reals representing the colour any give object or lightsource can...
QuadRenderer()
Class constructor.
virtual void ProtoSerializeProperties(XML::Node &SelfRoot) const
Convert the properties of this class to an XML::Node ready for serialization.
virtual void PushQuad(Vector2 *Positions, Vector2 *UVs, ColourValue *Colours, const String &Atlas)
Pushes vertex information for a quad to a vector. Equivalent to calling "PushTriangle" twice...
virtual void ProtoDeSerializeProperties(const XML::Node &SelfRoot)
Take the data stored in an XML Node and overwrite the properties of this object with it...
A light-weight handle for manipulating nodes in DOM tree.
This is used to represent a point on a 2 dimentional area, such as a screen.
virtual void ProtoDeSerializeProperties(const XML::Node &SelfRoot)
Take the data stored in an XML Node and overwrite the properties of this object with it...
static String GetSerializableName()
Get the name of the the XML tag the Renderable class will leave behind as its instances are serialize...
The bulk of the engine components go in this namspace.
virtual void ProtoSerializeProperties(XML::Node &SelfRoot) const
Convert the properties of this class to an XML::Node ready for serialization.
std::string String
A datatype used to a series of characters.
virtual void PushVertex(const Real &X, const Real &Y, const Vector2 &UV, const ColourValue &Colour, const String &Atlas)
Collects all the relevant information for a single vertex and pushes it to a vector.