Class to manage 2D textures.
More...
#include <TextureManager.h>
|
|
| Texture2D (const TextureConfig &options, unsigned int width, unsigned int height) |
| |
|
| Texture2D (const TextureConfig &options, void *data, unsigned int width, unsigned int height) |
| |
|
| Texture2D (const TextureConfig &options, const std::string src) |
| |
| virtual void | resize (int w, int h) |
| | Method to resize texture. More...
|
| |
| virtual void | resize (int w, int h, void *data) |
| | Method to resize texture. More...
|
| |
| void | bind (int slot=-1) |
| | Method to bind this texture. More...
|
| |
|
void | unbind (void) |
| | Method to unbind this texture.
|
| |
| unsigned int | handler (void) const |
| | Method to get texture raw id. More...
|
| |
| unsigned int | target (void) const |
| | Method to get texture target. More...
|
| |
| bool | isLoaded (void) const |
| | Method to check if texture was loaded. More...
|
| |
|
|
void | configTexture (void *data=nullptr) |
| |
|
virtual void | load (void) |
| |
|
| Texture (const TextureConfig &options, unsigned int type) |
| |
|
|
std::string | _src |
| |
|
unsigned int | _width |
| |
|
unsigned int | _height |
| |
|
bool | _loaded = false |
| |
|
unsigned int | _target |
| |
|
unsigned int | _handler |
| |
|
unsigned int | _internalFormat |
| |
|
unsigned int | _format |
| |
|
unsigned int | _border |
| |
|
unsigned int | _minFilter |
| |
|
unsigned int | _magFilter |
| |
|
unsigned int | _type |
| |
|
unsigned int | _level |
| |
|
unsigned int | _wrapS |
| |
|
unsigned int | _wrapT |
| |
|
unsigned int | _wrapR |
| |
|
unsigned int | _packAlignment |
| |
|
unsigned int | _unpackAlignment |
| |
Class to manage 2D textures.
Definition at line 137 of file TextureManager.h.
| virtual void reto::Texture2D::resize |
( |
int |
w, |
|
|
int |
h |
|
) |
| |
|
virtual |
Method to resize texture.
- Parameters
-
Reimplemented from reto::Texture.
| virtual void reto::Texture2D::resize |
( |
int |
w, |
|
|
int |
h, |
|
|
void * |
data |
|
) |
| |
|
virtual |
Method to resize texture.
- Parameters
-
| w | New width |
| h | New height |
| data | New texture data |
Reimplemented from reto::Texture.
The documentation for this class was generated from the following file: