Interface for sprite.
More...
#include <RenderInterfaces.hpp>
template<class T, class TextuT, template< typename > class rectT>
class GameEngine::ISprite< T, TextuT, rectT >
Interface for sprite.
- Template Parameters
-
T | template type of sprite |
TextuT | type of texture |
rectT | type of rect |
◆ ~ISprite()
template<class T , class TextuT , template< typename > class rectT>
◆ getSprite()
template<class T , class TextuT , template< typename > class rectT>
◆ load()
template<class T , class TextuT , template< typename > class rectT>
load the sprite
- Parameters
-
texture | texture from which to load the sprite |
resetRect | boolean to reset the sprite rectangle |
Implemented in GameEngine::Sprite.
◆ setPosition()
template<class T , class TextuT , template< typename > class rectT>
set the position of the sprite
- Parameters
-
position | new position of the sprite |
Implemented in GameEngine::Sprite.
◆ setTextureRect()
template<class T , class TextuT , template< typename > class rectT>
set a new rect forof the sprite
- Parameters
-
newRect | new rect of the sprite |
Implemented in GameEngine::Sprite.
The documentation for this class was generated from the following file: