demosys.resources package¶
Submodules¶
demosys.resources.shaders module¶
Shader Registry
-
class
demosys.resources.shaders.
Shaders
¶ Bases:
object
A registry for shaders requested by effects. Once all effects are initialized, we ask this class to load the shaders.
-
count
¶ Returns: Number of shaders
-
get
(path, create=False)¶ Get or create a shader object. This may return an empty object that will be filled during load based on the
create
parameter.Parameters: - path – Path to the shader
- create – (bool) Create an empty shader object if it doesn’t exist
Returns: Shader object
-
load
()¶ Loads all the shaders using the configured finders.
-
demosys.resources.textures module¶
Shader Registry
-
class
demosys.resources.textures.
Textures
¶ Bases:
object
A registry for textures requested by effects. Once all effects are initialized, we ask this class to load the textures.
-
count
¶ Returns: Number of textures
-
get
(path, create=False, **kwargs)¶ Get or create a texture object. This may return an empty object that will be filled during load based on the
create
parameter.Parameters: - path – Path to the texture
- create – (bool) Create an empty texture object if it doesn’t exist
Returns: Texture object
-
load
()¶ Loads all the textures using the configured finders.
-
demosys.resources.tracks module¶
Registry for rocket tracks