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(reload=False)

Loads all the shaders using the configured finders.

reload()

Reloads all shaders

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

class demosys.resources.tracks.Tracks

Bases: object

Registry for requested rocket tracks

get(name)

Get or create a Track object.

Parameters:name – Name of the track
Returns:Track object
load()

Dummy. This will be handled by the rocket library,

Module contents

demosys.resources.count()
demosys.resources.load()