adonthell-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Adonthell-devel] Sharing settings between modules


From: Kai Sterker
Subject: [Adonthell-devel] Sharing settings between modules
Date: Tue, 2 Nov 2010 20:46:07 +0100

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]