#include <texture_pool.h>
Public Member Functions | |
SDL_Texture * | GetTexture (SDL_Renderer *renderer, int width, int height, Uint32 format) |
void | ReturnTexture (SDL_Texture *texture, int width, int height, Uint32 format) |
void | Clear () |
Static Public Member Functions | |
static TexturePool & | GetInstance () |
Private Member Functions | |
TexturePool ()=default | |
std::string | GenerateKey (int width, int height, Uint32 format) |
Private Attributes | |
std::unordered_map< std::string, std::vector< SDL_Texture * > > | available_textures_ |
Definition at line 14 of file texture_pool.h.
|
privatedefault |
Referenced by GetInstance().
|
inlinestatic |
Definition at line 16 of file texture_pool.h.
References TexturePool().
Referenced by yaze::gfx::Bitmap::CreateTexture().
|
inline |
Definition at line 21 of file texture_pool.h.
References available_textures_, and GenerateKey().
Referenced by yaze::gfx::Bitmap::CreateTexture().
|
inline |
Definition at line 36 of file texture_pool.h.
References available_textures_, and GenerateKey().
Referenced by yaze::gfx::Bitmap::CreateTexture().
|
inline |
Definition at line 43 of file texture_pool.h.
References available_textures_.
|
inlineprivate |
Definition at line 55 of file texture_pool.h.
Referenced by GetTexture(), and ReturnTexture().
|
private |
Definition at line 59 of file texture_pool.h.
Referenced by Clear(), GetTexture(), and ReturnTexture().