|
Wraith
0.1.5
Basic 3D game engine in C++
|
A sprite used to display 2D images. More...
#include <Sprite.h>
Public Member Functions | |
| Sprite (const Sprite &)=default | |
| Sprite & | operator= (const Sprite &)=default |
| Sprite (Sprite &&)=default | |
| Sprite & | operator= (Sprite &&)=default |
| Sprite (const std::string &imageKey) | |
| Constructs sprite using image key defined within Image Manager. More... | |
| void | render () |
| Renders this sprite. More... | |
| void | setPosition (float positionX, float positionY) |
| Sets sprite position. More... | |
| float | getPositionX () const |
| Gets position x coordinate. More... | |
| float | getPositionY () const |
| Gets position y coordinate. More... | |
| void | setCenter (float centerX, float centerY) |
| Sets sprite center. More... | |
| void | setAngle (float angle) |
| Sets sprite angle./ More... | |
| float | getAngle () const |
| Gets the sprite angle. More... | |
| void | offsetAngle (float angleOffset) |
| Offset sprite angle. More... | |
| void | setScaleFactor (float scaleX, float scaleY) |
| Sets scale factor. More... | |
| void | setScalePixel (float width, float height) |
| Sets scale pixel. More... | |
| float | getWidth () const |
| Gets the width of the sprite. More... | |
| float | getHeight () const |
| Gets the height of the sprite. More... | |
Private Attributes | |
| float | _positionX |
| float | _positionY |
| float | _centerX |
| float | _centerY |
| float | _angle |
| float | _scaleX |
| float | _scaleY |
| float | _width |
| float | _height |
| GraphicsObject_Sprite * | _pSpriteGraphicsObject |
| SpriteModifierStrategy * | _pPropertyModifierStrategy |
Friends | |
| class | SpriteAttorney |
A sprite used to display 2D images.
In the constructor, it uses a key assigned in the ImageManager.
| float Sprite::getPositionY | ( | ) | const |
Gets position y coordinate.
.