Header file for memory management functions and structures. More...
Go to the source code of this file.
Classes | |
struct | CubeMapCache |
Structure to cache cube map textures. More... | |
struct | TextureCache |
Structure to cache textures. More... | |
struct | ModelCache |
Structure to cache models. More... | |
struct | ShaderCache |
Structure to cache shaders. More... | |
struct | MixMusicCache |
Structure to cache music. More... | |
struct | MixChunkCache |
Structure to cache sound effects. More... | |
struct | MemoryCaches |
Structure to manage all types of caches. More... | |
Typedefs | |
typedef u32 | TextureMap |
Alias for u32 representing a texture map. | |
typedef unsigned int | Shader |
Represents an unsigned integer used as a shader identifier. | |
Functions | |
void | init_memory_cache () |
Initializes the memory cache. | |
void | free_shaders () |
Frees the allocated shaders. | |
ModelData * | get_model_from_cache (const char *name) |
Gets a model from the cache. | |
void | add_model_to_cache (const char *name, ModelData *model) |
Adds a model to the cache. | |
void | free_models () |
Frees the allocated models. | |
Mix_Music * | get_mix_music_from_cache (const char *name) |
Gets a music from the cache. | |
void | add_mix_music_to_cache (const char *name, Mix_Music *music) |
Adds a music to the cache. | |
void | free_musics () |
Frees the allocated music. | |
Mix_Chunk * | get_mix_chunk_from_cache (const char *name) |
Gets a sound effect from the cache. | |
void | add_mix_chunk_to_cache (const char *name, Mix_Chunk *chunk) |
Adds a sound effect to the cache. | |
void | free_chunks () |
Frees the allocated sound effects. | |
void | free_textures () |
Frees the allocated textures. | |
void | free_cubemaps () |
Frees the allocated cubemaps. | |
void | free_memory_cache () |
Frees the entire memory cache. | |
Header file for memory management functions and structures.
This file contains declarations for functions and structures used to manage memory caches, shaders, models, textures, and cubemaps in the project.