class TextureRegistry public
A global registry for storing Hokusai::Texture
#create(name, width, height) public
create a new texture and add it to the registry
Arguments
- name - key for texture (String)
- width - width (Float)
- height - height (Float)
Returns
Returns Hokusai::Texture
#register(name, texture) public
Registers a texture
Arguments
- name - key for texture (String)
- texture - a Hokusai::Texture
Returns
Returns nothing
#get(name) public
Fetches a texture from the registry
Arguments
- name - key for texture (String)
Returns
Returns Hokusai::Texture
#delete(name) public
Delete a texture from the registry
Arguments
- name - key for texture (String)
Returns
Returns nothing