ContentManager

manages external content loading

Constructors

this
this()

initializes the content manager

Members

Aliases

Model
alias Model = raylib.Model
Undocumented in source.
Music
alias Music = raylib.Music
Undocumented in source.
Shader
alias Shader = raylib.Shader
Undocumented in source.
Texture2D
alias Texture2D = 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
Optional!Model load_model(string path)

loads a model from disk

load_music
Optional!Music load_music(string file_path)

loads music from disk

load_shader
Optional!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 since loading shaders is a bit of a pain, the loader uses custom logic

load_texture2d
Optional!Texture2D load_texture2d(string path)

loads a texture from disk

Variables

paths
string[] paths;

search paths for content

Meta