turbo::Sprite Class Reference
  Represent a drawable sprite. More...
#include <Sprite.hpp>
 Inheritance diagram for turbo::Sprite:
 Inheritance diagram for turbo::Sprite: Collaboration diagram for turbo::Sprite:
 Collaboration diagram for turbo::Sprite:| Public Member Functions | |
| Sprite (Texture *texture) | |
| void | draw () const override | 
| Draw the drawable -_-. | |
| unsigned int | get_width () const | 
| Get the width of the sprite.  More... | |
| unsigned int | get_height () const | 
| Get the height of the sprite.  More... | |
| Public Attributes | |
| Rectangle | rect = Rectangle<>() | 
| Target texture region. | |
| Protected Attributes | |
| Texture * | texture | 
| Target texture. | |
Detailed Description
Represent a drawable sprite.
Member Function Documentation
◆ get_height()
| unsigned int turbo::Sprite::get_height | ( | ) | const | 
Get the height of the sprite.
- Returns
- unsigned int height
◆ get_width()
| unsigned int turbo::Sprite::get_width | ( | ) | const | 
Get the width of the sprite.
- Returns
- unsigned int width
The documentation for this class was generated from the following files:
- include/turbo/graphics/Sprite.hpp
- src/graphics/Sprite.cpp


 1.9.1
 1.9.1