Turbo Engine 0.3
A C++ game engine using Allegro 5
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.
 ~Texture ()
 Destroy the Texture and free the underlying bitmap.
 Texture (const Texture &)=delete
Textureoperator= (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.

Detailed Description

Contains the data of the sprites.

Constructor & Destructor Documentation

◆ Texture() [1/2]

turbo::Texture::Texture ( Path * path)

Construct a new Texture object.

Parameters
pathpath to the image to load

◆ ~Texture()

turbo::Texture::~Texture ( )

Destroy the Texture and free the underlying bitmap.

◆ Texture() [2/2]

turbo::Texture::Texture ( const Texture & )
delete

Member Function Documentation

◆ __get_texture_bitmap()

void * turbo::Texture::__get_texture_bitmap ( ) const

◆ 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

◆ operator=()

Texture & turbo::Texture::operator= ( const Texture & )
delete

Member Data Documentation

◆ bitmap

ALLEGRO_BITMAP* turbo::Texture::bitmap
protected

Target allegro bitmap.


The documentation for this class was generated from the following files: