I wanted to wrap up the scaling stuff and apply the scaling factor to
mouse event coordinates. However, the input and gfx modules do not
know each other and I'd like to keep it that way. They both have
access to the base module, though, so one possibility would be to
store the current scale/zoom factor somewhere there. The question is,
how to best go about that? Add a (static) class with elements that
have to be shared across modules? Or just an additional global
variable in base.h?

Any idea how a neat solution could look like?

Kai

_______________________________________________
Adonthell-devel mailing list
Adonthell-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/adonthell-devel

Reply via email to