Mercurial > projects > mde
comparison mde/setup/sdl.d @ 80:ea58f277f487
Gui reorganization and changes; partial implementation of floating widgets.
Moved contents of mde/gui/WidgetData.d elsewhere; new gui/WidgetDataSet.d and gui/types.d modules.
Changes to widget/createWidget.d
Partially implemented FloatingAreaWidget to provide an area for floating "window" widgets.
New DebugWidget and some uses of it (e.g. bad widget data).
Decoupled OptionChanges from Options.
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Thu, 07 Aug 2008 11:25:27 +0100 |
parents | 3dfd934100f7 |
children |
comparison
equal
deleted
inserted
replaced
79:61ea26abe4dd | 80:ea58f277f487 |
---|---|
11 See the GNU General Public License for more details. | 11 See the GNU General Public License for more details. |
12 | 12 |
13 You should have received a copy of the GNU General Public License | 13 You should have received a copy of the GNU General Public License |
14 along with this program. If not, see <http://www.gnu.org/licenses/>. */ | 14 along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
15 | 15 |
16 /** Just a temporary place to put SDL Init and Video stuff. | 16 /** Just a temporary place to put SDL init stuff. |
17 */ | 17 */ |
18 module mde.setup.sdl; | 18 module mde.setup.sdl; |
19 | 19 |
20 import mde.setup.initFunctions; | 20 import mde.setup.initFunctions; |
21 import mde.input.joystick; | 21 import mde.input.joystick; |
176 setProjection (w, h); | 176 setProjection (w, h); |
177 } | 177 } |
178 | 178 |
179 void cleanupSDL () { // cleanup func | 179 void cleanupSDL () { // cleanup func |
180 closeJoysticks(); | 180 closeJoysticks(); |
181 logger.trace ("cleanupSDL - middle"); | 181 debug logger.trace ("cleanupSDL - joysticks closed"); |
182 SDL_Quit(); | 182 SDL_Quit(); |
183 } | 183 } |
184 | 184 |
185 | 185 |
186 /** All video options. */ | 186 /** All video options. */ |