Object that loads and stores an image texture.
More...
#include <JMGraphics.h>
|
|
| 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.
|
|
|
GLuint | texture = 0 |
| | the address of the image texture on the gpu.
|
|
std::string | filePath = "" |
Object that loads and stores an image texture.
The documentation for this class was generated from the following file: