#include <image.h>
Public Member Functions | |
| Image () | |
| Constructor. | |
| ~Image () | |
| Destructor. | |
| IMG_LOAD_ERROR | LoadImage (const char *path) |
| u32 | GetWidth () const |
| u32 | GetHeight () const |
| bool | IsInitialized () const |
| void | BindTexture () |
| IMG_LOAD_ERROR wsp::Image::LoadImage | ( | const char * | path | ) |
Loads an image from a file. Uses fopen(), so some basic filesystem initialization is required.
| path | The path to the file. |
| u32 wsp::Image::GetWidth | ( | ) | const |
Gets the width of this image.
| u32 wsp::Image::GetHeight | ( | ) | const |
Gets the height of this image.
| bool wsp::Image::IsInitialized | ( | ) | const |
Checks if the image is loaded.
| void wsp::Image::BindTexture | ( | ) |
Used to select this image for the next texturing process. Most of the time you won't gonna use this.
1.5.5