void loadFromFile(const std::string &filename)
Load the texture from a file on the disk.
static void bind(const Texture *texture)
Bind a texture for rendering.
void loadFromSurface(SDL_Surface *surface)
Load the texture from a SDL_Surface.
GLuint m_texture
Internal OpenGL texture ID.
Texture & operator=(Texture &&texture)
Move assignement operator.
Image living on the graphics card that can be used for drawing.
u16 height() const
Return the height of the texture.
const std::string & filename() const
Return the filename of the texture.
u16 width() const
Return the width of the texture.