![]() |
Maria GDK 5.0.0.935
Documentation of native code in develop branch
|
#include <M3DTexture.h>
Public Types | |
| enum | TextureUnits { TEX_COLOR0 = 0 , TEX_COLOR1 = 1 , TEX_COLOR2 = 2 , TEX_COLOR3 = 3 , TEX_NORMAL_MAP = 4 , TEX_SHADOW_MAP = 5 } |
Public Member Functions | |
| Texture (std::shared_ptr< STK::Image > img) | |
| GLuint | handle () const |
| void | setMinFilter (GLenum min) |
| void | setMagFilter (GLenum mag) |
| GLenum | getMinFilter () const |
| GLenum | getMagFilter () const |
| void | apply (int texture_unit) |
| void | unload () |
Static Public Member Functions | |
| static GLenum | getBlankTexture () |
| static void | clearBlankTexture () |
| static void | applyBlankTexture (int texture_unit) |
Protected Member Functions | |
| void | uploadTexture (const STK::Image &img) |
Protected Attributes | |
| std::shared_ptr< STK::Image > | img_ |
| GLuint | handle_ |
| GLenum | _minFilter |
| GLenum | _magFilter |
SngTexture - Short description. Detailed description.
Defines which texture units are default assigned to what texture layer.
|
static |
Returns a 1x1 0-texture.