raylibstarter 0.1.0
|
The class Texture2D encapsulates the Raylib structure Texture2D and takes care of the correct loading and unloading of the texture into the VRAM. More...
#include <texture2d.h>
Public Member Functions | |
Texture2D ()=delete | |
Texture2D (const char *filename) | |
Constructor. More... | |
Texture2D (const game::core::Texture2D &texture)=delete | |
Texture2D & | operator= (const Texture2D &)=delete |
~Texture2D () | |
Destructor. More... | |
const ::Texture2D & | texture () const |
const int & | width () const |
const int & | height () const |
Private Attributes | |
::Texture2D | texture_ = { } |
Raylib Texture2D structure which contains width, height and the ID of the associated VRAM texture. More... | |
The class Texture2D encapsulates the Raylib structure Texture2D and takes care of the correct loading and unloading of the texture into the VRAM.
Definition at line 16 of file texture2d.h.
|
delete |
|
explicit |
Constructor.
Creates a new Texture2D object and loads the image file specified as parameter as texture into the VRAM.
filename | File name of the image file to load. All Raylib compatible file types are supported. |
Definition at line 5 of file texture2d.cpp.
|
delete |
game::core::Texture2D::~Texture2D | ( | ) |
Destructor.
Defines if the mouse support should be activated
Definition at line 10 of file texture2d.cpp.
const int & game::core::Texture2D::height | ( | ) | const |
Definition at line 23 of file texture2d.cpp.
const ::Texture2D & game::core::Texture2D::texture | ( | ) | const |
Definition at line 15 of file texture2d.cpp.
const int & game::core::Texture2D::width | ( | ) | const |
Definition at line 19 of file texture2d.cpp.
|
private |
Raylib Texture2D structure which contains width, height and the ID of the associated VRAM texture.
Definition at line 54 of file texture2d.h.