Mercurial > projects > mde
comparison mde/sdl.d @ 45:0fd51d2c6c8a
Several changes to resising windows and layout widgets. This commit still has some bugs.
Moved the implementable widgets from mde.gui.widget.Widget to miscWidgets, leaving base widgets in Widget.
Rewrote some of GridLayoutWidget's implementation. Made many operations general to work for either columns or rows. Some optimisations were intended but ended up being removed due to problems.
Allowed layout's to resize from either direction (only with window resizes).
committer: Diggory Hardy <diggory.hardy@gmail.com>
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Thu, 22 May 2008 11:34:09 +0100 |
parents | b3a6ca4516b4 |
children | a98ffb64f066 |
comparison
equal
deleted
inserted
replaced
44:07bd1a09e161 | 45:0fd51d2c6c8a |
---|---|
91 | 91 |
92 setInitFailure (); | 92 setInitFailure (); |
93 return; | 93 return; |
94 } | 94 } |
95 | 95 |
96 // Now (must be done after GL context is created) try to load later version: | 96 // Now (must be done after GL context is created) we can try to load later version. |
97 // The initial loading provides opengl 1.1 features. | |
97 /+ No later GL features are currently used. | 98 /+ No later GL features are currently used. |
98 try { | 99 try { |
99 DerelictGL.loadVersions(GLVersion.Version21); | 100 DerelictGL.loadVersions(GLVersion.Version21); |
100 } catch (DerelictException de) { | 101 } catch (DerelictException de) { |
101 logger.fatal ("Loading OpenGL version > 1.1 failed:"); | 102 logger.fatal ("Loading OpenGL version > 1.1 failed:"); |