|
std::shared_ptr< Texture2D > | getTexture2D (const std::string &filename, GLenum wrap_horiz=GL_REPEAT, GLenum wrap_vert=GL_REPEAT, GLenum min_filter=GL_LINEAR, GLenum mag_filter=GL_NEAREST, int unit=0) |
|
std::shared_ptr< Texture2D > | getTexture2D (const std::vector< uint8_t > &imageBuffer, const std::string &id, GLenum wrap_horiz=GL_REPEAT, GLenum wrap_vert=GL_REPEAT, GLenum min_filter=GL_LINEAR, GLenum mag_filter=GL_NEAREST, int unit=0) |
|
std::shared_ptr< Texture2D > | getTexture2D (const std::shared_ptr< STK::AssetDataProvider > &asset_provider, const std::string &asset_id, const std::string &url, GLenum wrap_horiz=GL_REPEAT, GLenum wrap_vert=GL_REPEAT, GLenum min_filter=GL_LINEAR, GLenum mag_filter=GL_NEAREST, int unit=0) |
|
std::shared_ptr< CubeMap > | getCubeMap (const std::string *filename, GLenum wrap_horiz=GL_REPEAT, GLenum wrap_vert=GL_REPEAT, GLenum min_filter=GL_LINEAR, GLenum mag_filter=GL_NEAREST, int unit=0) |
|
void | addLoadRequest (Texture *tex) |
|
bool | startTextureLoader (bool separate_context=true) |
|
void | stopTextureLoader () |
|
void | clearTextures () |
|
int64_t | getTimestamp () const |
|
void | incMemsize (int memsize) |
| Increase size of tracked memory usage.
|
|
void | decMemsize (int memsize) |
| Decrease size of tracked memory usage.
|
|
int64_t | getMemsize () const |
| Get current memory usage.
|
|
void | setMaxMemsize (int64_t max_memsize) |
| Set max memory usage. If set to 0, no cleanup is done.
|
|
int64_t | getMaxMemsize () const |
| Get max memory usage.
|
|
int64_t | cleanupCache (double target_f=0.5, int min_age=500) |
|
std::shared_ptr< STK::AssetDataProvider > | getAssetProvider (const std::string &asset_id) const |
|
bool | needsRedraw () const |
|
void | redrawFinished () |
| This should be called after each frame to keep track of rendering flags.
|
|
TextureManager - Short description. Detailed description.