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

load_model
raylib.Model load_model(string path)

loads a model from disk

load_shader
raylib.Shader load_shader(string vs_path, string fs_path)

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