![]() |
Rise
The Vieneo Province
|
#include <Sprite.h>
Public Member Functions | |
| Sprite (Logger *prmLogger, DeviceObject *prmpDevice, std::string prmPathAndFilename, int prmX, int prmY, float prmZ, int prmTop, int prmLeft, int prmWidth, int prmHeight, DWORD prmColor, float scaleX=1.0f, float scaleY=1.0f) | |
| void | Update () |
| void | Draw (RiseMath::Color prmColor) |
| void | Draw () const |
| void | SetLocation (int absoluteX, int absoluteY) |
| void | SetRectangle (int top, int left, int right, int bottom) |
| void | SetRotationCenter (RiseMath::Vector2 rotationCenter) |
| void | Evict () |
Public Attributes | |
| float | rotate = 0.0f |
| float | mag = 1.0f |
Private Attributes | |
| Rendering::RenderSprite * | pSprite = nullptr |
| Rendering::RenderTexture * | pTexture = nullptr |
| Logger * | logger = nullptr |
| int | x = 0 |
| int | y = 0 |
| int | width = 0 |
| int | height = 0 |
| float | z = 0.0f |
| RiseMath::Color | color = {} |
| RiseMath::Matrix | matWorld = {} |
| RiseMath::Vector3 | position = RiseMath::Vector3(0, 0, 0) |
| RiseMath::Vector2 | centerRotation = RiseMath::Vector2(0, 0) |
| RiseMath::Vector2 | scale |
| RECT | rect = {} |
| int | top = 0 |
| int | left = 0 |
| RiseMath::Vector2 | centerOffset = RiseMath::Vector2(0, 0) |
| DeviceObject * | deviceObject |
| std::string | pathAndFilename |
| Sprite::Sprite | ( | Logger * | prmLogger, |
| DeviceObject * | prmpDevice, | ||
| std::string | prmPathAndFilename, | ||
| int | prmX, | ||
| int | prmY, | ||
| float | prmZ, | ||
| int | prmTop, | ||
| int | prmLeft, | ||
| int | prmWidth, | ||
| int | prmHeight, | ||
| DWORD | prmColor, | ||
| float | scaleX = 1.0f, | ||
| float | scaleY = 1.0f ) |
we are offset by screen location using the projection matrix this works for sprites but not fonts apparently for some reason
Definition at line 5 of file Sprite.cpp.
| void Sprite::Draw | ( | ) | const |
| void Sprite::Draw | ( | RiseMath::Color | prmColor | ) |
| void Sprite::Evict | ( | ) |
Definition at line 45 of file Sprite.cpp.
|
inline |
| void Sprite::Update | ( | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |