module

GSDL::TextureManager

Class methods

clear_all

Unloads all managed textures from memory.

Source
finalize_atlas
Source
find_symbol(name : String) : Symbol | Nil
Source
get(id : Symbol) : Texture

Safe, Lazy-Loading Fetch Pass for Symbol keys

Source
get(key : String) : Texture

Retrieves a loaded texture by its key.

Source
get_texture_by_name(name : String) : Texture | Nil
Source
load(key : String, path_key : String) : Texture

Loads a texture based on the mode (release/debug).

Source
load_from_memory(key : String, io : SDL3::IOStream) : Texture

Loads a texture from raw byte data and associates it with a key.

Source
load_from_surface(key : String, surface : Surface) : Texture

Loads a texture from an SDL surface and associates it with a key.

Source
preload(symbols : Array(Symbol)) : Nil
Source
prune_dead_references

Housekeeping Maintenance Pass (Call during scene transitions)

Source
register_pair(key : Symbol, val : String)
Source
register_runtime(mappings : Hash(Symbol, String))
Source
register_runtime(mappings : NamedTuple)
Source
unload(key : String) : Nil

Unloads a specific texture from memory.

Source

Macros

register(mappings)
Source