|  | Maria GDK 5.0.0.910
    Documentation of native code in develop branch | 
#include <MSymbolTexture.h>
 
  
| Public Member Functions | |
| SymbolTexture (int width, int height, bool mimpaps) | |
| bool | beginTextureUpdate () | 
| bool | endTextureUpdate () | 
| void | activate () override | 
| void | toImage (STK::Image &img) | 
| void | upload () override | 
|  Public Member Functions inherited from STK::Texture | |
| Texture (TextureManager *tex_mgr, int texture_unit=0) | |
| Texture (int texture_unit=0) | |
| bool | bind (GLenum target) | 
| GLuint | getHandle () const | 
| virtual void | activate ()=0 | 
| virtual void | upload ()=0 | 
| void | deactivate (GLenum target) | 
| void | unload (GLenum target) | 
| void | setHorizontalWrap (GLenum wrap) | 
| void | setVerticalWrap (GLenum wrap) | 
| void | setAnisotropy (float anisotropy) | 
| float | getAnisotropy () const | 
| GLenum | getHorizontalWrap () const | 
| GLenum | getVerticalWrap () const | 
| void | setMinFilter (GLenum min) | 
| void | setMagFilter (GLenum mag) | 
| GLenum | getMinFilter () const | 
| GLenum | getMagFilter () const | 
| int | getTextureUnit () const | 
| void | setTextureUnit (int texture_unit) | 
| void | setStatus (LoadState state) | 
| LoadState | getStatus () const | 
| void | clear () | 
| int64_t | getTimestamp () const | 
| Protected Member Functions | |
| bool | loadInternal () override | 
|  Protected Member Functions inherited from STK::Texture | |
| void | applyTextureParameters (GLenum target) | 
| void | getGLFormat (Image::Format fmt, GLenum &int_fmt, GLenum &data_fmt, GLenum &data_type) | 
| void | uploadTexture (const STK::Image &img, GLenum target) | 
| virtual bool | loadInternal ()=0 | 
| bool | genTexture () | 
| Additional Inherited Members | |
|  Public Types inherited from STK::Texture | |
| enum | LoadState { INITIAL , LOADING , LOADED , FAILED } | 
|  Static Public Member Functions inherited from STK::Texture | |
| static int | getNumActiveTextures () | 
|  Protected Attributes inherited from STK::Texture | |
| TextureManager * | tex_mgr_ | 
| GLuint | handle_ | 
| int | texture_unit_ | 
| GLenum | vertical_wrap_ | 
| GLenum | horizontal_wrap_ | 
| GLenum | mag_filter_ | 
| GLenum | min_filter_ | 
| GLfloat | anisotropy_ | 
| int64_t | timestamp_ | 
| int | memsize_ | 
| std::atomic< int > | load_state_ | 
| OpenGLContext::PlatformHandleType | gl_context_ = 0 | 
|  Static Protected Attributes inherited from STK::Texture | |
| static int | s_numActiveTextures = 0 | 
SymbolTexture - Dynamically updated symbol texture.
| 
 | overridevirtual | 
Activate texture. This method will upload the texture data to OpenGL if not already done, and set this texture as current texture for all texture operations on the current texture unit.
Implements STK::Texture.
| 
 | overrideprotectedvirtual | 
Load from disk and upload to graphics card. This method should load the texture resources from disk.
Implements STK::Texture.
| 
 | overridevirtual | 
Upload texture data to graphics card. This requires a valid OpenGL context. If threaded GL and shared contexts are supported this can be done from the texture loader thread.
Implements STK::Texture.