ContentManager

manages external content loading

Constructors

this
this()

initializes the content manager

Members

Aliases

ModelCache
alias ModelCache = KeyedCache!(raylib.Model)
Undocumented in source.
ShaderCache
alias ShaderCache = KeyedCache!(raylib.Shader)
Undocumented in source.
TexCache
alias TexCache = KeyedCache!(raylib.Texture2D)
Undocumented in source.

Functions

destroy
void destroy()

releases all resources

drop_caches
void drop_caches()
Undocumented in source. Be warned that the author may not have intended to support it.
get_path
string get_path(string path)

get the physical path to a logical content path

load_model
raylib.Model load_model(string path)

loads a model from disk

load_model_animations
raylib.ModelAnimation[] load_model_animations(string path)
Undocumented in source. Be warned that the author may not have intended to support it.
load_shader
raylib.Shader load_shader(string vs_path, string fs_path, bool bypass_cache)

loads a shader from disk (vertex shader, fragment shader). pass null to either arg to use the default

load_texture2d
raylib.Texture2D load_texture2d(string path)

loads a texture from disk

Variables

paths
string[] paths;

search paths for content

Meta