JMGraphics
Loading...
Searching...
No Matches
JMGraphics::Texture Class Reference

Object that loads and stores an image texture. More...

#include <JMGraphics.h>

Public Member Functions

 Texture (std::string FilePath)
 Texture (const Texture &)=default
Texture & operator= (const Texture &)=default
 Texture (Texture &&)=default
Texture & operator= (Texture &&)=default
void load (std::string FilePath)
 loads an image texture and saves it to the GPU memory.
float width () const
 returns the width of the loaded image in pixels.
float height () const
 returns the height of the loaded image in pixels.

Public Attributes

GLuint texture = 0
 the address of the image texture on the gpu.
std::string filePath = ""

Detailed Description

Object that loads and stores an image texture.


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