Basic class used to describe a portion of a texture to be applied to a Quad.
More...
#include <sprite.h>
Basic class used to describe a portion of a texture to be applied to a Quad.
Definition at line 55 of file sprite.h.
Mezzanine::UI::Sprite::Sprite |
( |
const String & |
SpriteName, |
|
|
const Real |
UVTop, |
|
|
const Real |
UVLeft, |
|
|
const Real |
UVBottom, |
|
|
const Real |
UVRight |
|
) |
| |
|
inline |
Class constructor.
The name to be given to this sprite.
- Parameters
-
UVTop | The top position of this sprite on the Atlas. |
UVLeft | The left position of this sprite on the Atlas. |
UVBottom | The bottom position of this sprite on the Atlas. |
UVRight | The right position of this sprite on the Atlas. |
Definition at line 64 of file sprite.h.
Gets the pixel position on the Atlas of a corner belonging to this Sprite.
- Parameters
-
Corner | The corner to retrieve the coordinates for. |
- Returns
- Returns a Vector2 containing the Atlas pixel position of the specific corner.
Definition at line 137 of file sprite.h.
Real Mezzanine::UI::Sprite::GetHeight |
( |
) | |
const |
|
inline |
Gets the sprite's height on the Atlas texture.
- Returns
- Returns a Real representing the height of this sprite on the Atlas Texture in pixels.
Definition at line 128 of file sprite.h.
Vector2 Mezzanine::UI::Sprite::GetPosition |
( |
) | |
const |
|
inline |
Gets the position of the sprite on the Atlas texture.
- Returns
- Returns a Vector2 containing the top-left position of this sprite on the Atlas texture in pixels.
Definition at line 120 of file sprite.h.
Gets the relative position on the Atlas of a corner belonging to this Sprite.
- Parameters
-
Corner | The corner to retrieve the coordinates for. |
- Returns
- Returns a Vector2 containing the Atlas relative position of the specific corner.
Definition at line 150 of file sprite.h.
Vector2 Mezzanine::UI::Sprite::GetSize |
( |
) | |
const |
|
inline |
Gets the size of the sprite on the Atlas texture.
- Returns
- Returns a Vector2 containing the size of this sprite on the Atlas Texture in pixels.
Definition at line 124 of file sprite.h.
Real Mezzanine::UI::Sprite::GetUVBottom |
( |
) | |
const |
|
inline |
Gets the Bottom coordinate on the Atlas texture.
- Returns
- Returns a Real representing the bottom position of this sprite on the Atlas texture in pixels.
Definition at line 108 of file sprite.h.
Real Mezzanine::UI::Sprite::GetUVLeft |
( |
) | |
const |
|
inline |
Gets the Left coordinate on the Atlas texture.
- Returns
- Returns a Real representing the left position of this sprite on the Atlas texture in pixels.
Definition at line 112 of file sprite.h.
Real Mezzanine::UI::Sprite::GetUVRight |
( |
) | |
const |
|
inline |
Gets the Right coordinate on the Atlas texture.
- Returns
- Returns a Real representing the right position of this sprite on the Atlas texture in pixels.
Definition at line 116 of file sprite.h.
Real Mezzanine::UI::Sprite::GetUVTop |
( |
) | |
const |
|
inline |
Gets the Top coordinate on the Atlas texture.
- Returns
- Returns a Real representing the top position of this sprite on the Atlas texture in pixels.
Definition at line 104 of file sprite.h.
Real Mezzanine::UI::Sprite::GetWidth |
( |
) | |
const |
|
inline |
Gets the sprite's width on the Atlas texture.
- Returns
- Returns a Real representing the width of this sprite on the Atlas Texture in pixels.
Definition at line 132 of file sprite.h.
The documentation for this class was generated from the following file:
- /home/sqeaky/Code/Mezzanine/Mezzanine/src/UI/sprite.h