Mercurial > projects > mde
diff mde/sdl.d @ 50:f68ae1d667f9
Options: impl template & new OptionsFont class.
Options: impl template to ease creating Options sub-classes.
New OptionsFont class (currently only controls render mode and hinting).
committer: Diggory Hardy <diggory.hardy@gmail.com>
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Sun, 01 Jun 2008 18:22:54 +0100 |
parents | a98ffb64f066 |
children | 387a80724c35 |
line wrap: on
line diff
--- a/mde/sdl.d Sat May 31 13:10:06 2008 +0100 +++ b/mde/sdl.d Sun Jun 01 18:22:54 2008 +0100 @@ -179,19 +179,7 @@ /** All video options. */ OptionsVideo vidOpts; class OptionsVideo : Options { - alias store!("fullscreen","hardware","resizable","noFrame") BOOL; - alias store!("screenW","screenH","windowW","windowH") INT; - //alias store!() CHARA; - - mixin (decBool!(BOOL.a)); - mixin (decInt!(INT.a)); - //mixin (decCharA!(CHARA.a)); - - this () { - mixin (aaBool!(BOOL.a)); - mixin (aaInt!(INT.a)); - //mixin (aaCharA!(CHARA.a)); - } + mixin (impl!("bool fullscreen,hardware,resizable,noFrame; int screenW,screenH,windowW,windowH;")); static this() { vidOpts = new OptionsVideo;