effectmanager.adoc 828 B

12345678910111213141516171819202122232425262728293031323334
  1. = effectmanager
  2. :author:
  3. :revnumber:
  4. :revdate: 2016/03/17 20:48
  5. :relfileprefix: ../../../
  6. :imagesdir: ../../..
  7. ifdef::env-github,env-browser[:outfilesuffix: .adoc]
  8. == EffectManager
  9. The EffectManager can be used to execute Effects, BatchEffects and EffectQueues against a single Element or a group of nested or separate Elements. Effects include shader-based effects, geometry-based effects and can include an audio event if UIAudio has been enabled.
  10. The EffectManager is accessed through the Screen class, like so:
  11. [source,java]
  12. ----
  13. screen.getEffectManager();
  14. ----
  15. === Methods specific to the EffectMAnager
  16. [source,java]
  17. ----
  18. screen.getEffectManager().applyEffect(Effect effect);
  19. screen.getEffectManager().applyEffectQueue(EffectQueue queue);
  20. screen.getEffectManager().applyBatchEffect(BatchEffect batch);
  21. ----