|
P-E-R-R-Y
Utilitaires, contrats et vendors du moteur, en une seule doc
|
Une vue sur une texture : decoupe, position, taille, rotation. More...
#include <SdlSprite.hpp>
Public Member Functions | |
| SdlSprite (SdlTexture &texture) | |
| ~SdlSprite () override=default | |
| bool | isReady () const override |
| notice if the sprite is ready | |
| Rect< float > | getBounds () const override |
| give the bounds of the sprite | |
| void | setCrop (Rect< float > rect) override |
| Crop the sprite with a rectangle. | |
| Vector2f | getPosition () const override |
| Get the Position object. | |
| void | setPosition (Vector2f position) override |
| Set the Position object. | |
| float | getRotation () const override |
| Get the Rotation object. | |
| void | setRotation (float angle, bool isRad=false) override |
| Set the Rotation object. | |
| Vector2f | getSize () const override |
| Get the Sprite size. | |
| void | setSize (Vector2f size) override |
| Set the Sprite size. | |
| SdlSprite (SdlTexture &texture) | |
| ~SdlSprite () override=default | |
| bool | isReady () const override |
| notice if the sprite is ready | |
| Rect< float > | getBounds () const override |
| give the bounds of the sprite | |
| void | setCrop (Rect< float > rect) override |
| Crop the sprite with a rectangle. | |
| Vector2f | getPosition () const override |
| Get the Position object. | |
| void | setPosition (Vector2f position) override |
| Set the Position object. | |
| float | getRotation () const override |
| Get the Rotation object. | |
| void | setRotation (float angle, bool isRad=false) override |
| Set the Rotation object. | |
| Vector2f | getSize () const override |
| Get the Sprite size. | |
| void | setSize (Vector2f size) override |
| Set the Sprite size. | |
| Public Member Functions inherited from graphic::ISprite | |
| virtual | ~ISprite ()=default |
| Destroy the ISprite object. | |
Friends | |
| class | SdlWindow |
Une vue sur une texture : decoupe, position, taille, rotation.
Aucune ressource propre - SDL dessine une texture par un simple appel avec deux rectangles. Le sprite n'est donc que ces deux rectangles.
|
inline |
|
overridedefault |
|
inline |
|
overridedefault |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
friend |