Avoid --> DisplaySystem display

In every class I need display in the constructur, if I want to use textures or need display in an other way.

Even for those classes, which have nothing to do with display, but they must provide display for futher classes.

There must be a smarter way!

I tried with a master class, with methods set(display) and get(), but this didn't work. Maybe I made a mistake, who knows?

Any ideas?


DisplaySystem is a singleton… You can always use DisplaySystem.getDisplaySystem() to retrieve it.


That's exactly what I needed!

Can't tell how great this is!

Thanks a lot!