|
Turbo Engine 0.3
A C++ game engine using Allegro 5
|
Contains the data of the sprites. More...
#include <Texture.hpp>
Public Member Functions | |
| Texture (Path *path) | |
| Construct a new Texture object. | |
| ~Texture () | |
| Destroy the Texture and free the underlying bitmap. | |
| Texture (const Texture &)=delete | |
| Texture & | operator= (const Texture &)=delete |
| unsigned int | get_width () const |
| Get the width of the texture. | |
| unsigned int | get_height () const |
| Get the height of the texture. | |
| void * | __get_texture_bitmap () const |
Protected Attributes | |
| ALLEGRO_BITMAP * | bitmap |
| Target allegro bitmap. | |
Contains the data of the sprites.
| turbo::Texture::Texture | ( | Path * | path | ) |
Construct a new Texture object.
| path | path to the image to load |
| turbo::Texture::~Texture | ( | ) |
Destroy the Texture and free the underlying bitmap.
|
delete |
| void * turbo::Texture::__get_texture_bitmap | ( | ) | const |
| unsigned int turbo::Texture::get_height | ( | ) | const |
Get the height of the texture.
| unsigned int turbo::Texture::get_width | ( | ) | const |
Get the width of the texture.
|
protected |
Target allegro bitmap.