Remove all Singletons in CEGUI

Issue #1101 new
Lukas Meindl
created an issue

Removing all Singletones in the library is something we decided on doing long ago but due to the amount of work involved, it has not been done yet. This must be implemented for 1.0 Release.

Comments (4)

  1. Lukas Meindl reporter

    @zer0-x it is just lazy/bad design imo. Imo, it is never good to expose something publically unless absolutely necessary.

    In specific to CEGUI, the major disadvantage is that you can only have one system, one renderer, per application. There might not be many use-cases for running two CEGUI's but why have a design that prevents such things completely ;)

    Overall, it is just better to put the creation of the System and Renderer into the hands of the user imo. I dont care so much about the logger for example, that one can stay a singleton.

  2. Log in to comment