turbo::Texture Class Reference
Contains the data of the sprites. More...
#include <Texture.hpp>
Public Member Functions | |
Texture (Path *path) | |
Construct a new Texture object. More... | |
unsigned int | get_width () const |
Get the width of the texture. More... | |
unsigned int | get_height () const |
Get the height of the texture. More... | |
void * | __get_texture_bitmap () const |
Protected Attributes | |
ALLEGRO_BITMAP * | bitmap |
Target allegro bitmap. | |
Detailed Description
Contains the data of the sprites.
Constructor & Destructor Documentation
◆ Texture()
turbo::Texture::Texture | ( | Path * | path | ) |
Construct a new Texture object.
- Parameters
-
path path to the image to load
Member Function Documentation
◆ get_height()
unsigned int turbo::Texture::get_height | ( | ) | const |
Get the height of the texture.
- Returns
- unsigned int height
◆ get_width()
unsigned int turbo::Texture::get_width | ( | ) | const |
Get the width of the texture.
- Returns
- unsigned int width
The documentation for this class was generated from the following files:
- include/turbo/graphics/Texture.hpp
- src/graphics/Texture.cpp