Esempio n. 1
0
def setup(settings_override=None):
    """
    Initialize effects and prepare for running

    :param settings_override: (dict) keyword overrides for settings
    """
    from demosys.effects.registry import effects
    from demosys.conf import settings
    if settings_override:
        settings.update(**settings_override)

    effects.polulate(settings.EFFECTS)
Esempio n. 2
0
    def test_templates(self):
        templates = self.list_effect_templates()
        effects.polulate(templates)
        self.project.load()

        for template in templates:
            package = effects.get_package(template)
            for effect_cls in package.runnable_effects():
                effect = effect_cls()
                effect.post_load()
                effect.draw(0.0, 1 / 60, self.window.fbo)

                self.window.fbo.clear()
Esempio n. 3
0
 def create_effect_classes(self):
     """
     Registers effect packages defined in ``effect_packages``.
     """
     effects.polulate(self.effect_packages)
Esempio n. 4
0
 def setup_class(cls):
     effects.polulate(['tests.effect_package'])
     cls.effect = cls.project.create_effect("test", 'TestEffect')
Esempio n. 5
0
def setup():
    from demosys.effects.registry import effects
    from demosys.conf import settings

    effects.polulate(settings.EFFECTS)