Changeset 33:6886402c1545
- Timestamp:
- 05/01/08 05:55:04
(8 months ago)
- Author:
- Diggory Hardy <diggory.hardy@gmail.com>
- branch:
- default
- convert_revision:
- de6c13bf1d4b17b10a2272358706cb58a63bc2a1
- Message:
Started implementing FreeType?.
Loads the freetype library and a font, but nothing else yet.
committer: Diggory Hardy <diggory.hardy@gmail.com>
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r31 |
r33 |
|
| 10 | 10 | ->* draw boxes |
|---|
| 11 | 11 | -> maybe more (text, textures, ...) |
|---|
| 12 | | ->* Windows with size & position |
|---|
| | 12 | -> Windows with size & position |
|---|
| | 13 | -> position from Gui |
|---|
| 13 | 14 | -> Widgets: |
|---|
| 14 | 15 | ->* minimum size but expandable, auto-set |
|---|
| 15 | 16 | -> no ability to resize yet except from config files |
|---|
| 16 | | ->* grid "layout" widgets |
|---|
| 17 | 17 | -> scripted widgets |
|---|
| 18 | | -> decent rendering/theme system |
|---|
| 19 | 18 | -> Text rendering |
|---|
| 20 | 19 | -> text library? |
|---|
| r32 |
r33 |
|
| 4 | 4 | |
|---|
| 5 | 5 | In progress: |
|---|
| | 6 | FreeType implementing... |
|---|
| 6 | 7 | |
|---|
| 7 | 8 | |
|---|
| r32 |
r33 |
|
| 36 | 36 | import mde.gui.Gui; |
|---|
| 37 | 37 | import mde.input.Input; |
|---|
| | 38 | import ft = mde.ft.init; |
|---|
| 38 | 39 | |
|---|
| 39 | | // NOTE: error reporting needs revision |
|---|
| | 40 | // NOTE: error reporting needs a revision |
|---|
| 40 | 41 | |
|---|
| 41 | 42 | private Logger logger; |
|---|
| … | … | |
| 45 | 46 | init.addFunc (&initInput, "initInput"); |
|---|
| 46 | 47 | init.addFunc (&guiLoad, "guiLoad"); |
|---|
| | 48 | init.addFunc (&initFreeType, "initFreeType"); |
|---|
| 47 | 49 | } |
|---|
| 48 | 50 | |
|---|
| 49 | | void guiLoad () { |
|---|
| | 51 | void guiLoad () { // init func |
|---|
| 50 | 52 | try { |
|---|
| 51 | 53 | gui.load ("gui"); |
|---|
| … | … | |
| 75 | 77 | } |
|---|
| 76 | 78 | |
|---|
| | 79 | void initFreeType () { // init func |
|---|
| | 80 | try { |
|---|
| | 81 | ft.initFreeType; |
|---|
| | 82 | } catch (Exception e) { |
|---|
| | 83 | logger.fatal ("initFreeType failed: " ~ e.msg); |
|---|
| | 84 | setInitFailure; |
|---|
| | 85 | } |
|---|
| | 86 | } |
|---|
| | 87 | |
|---|
| 77 | 88 | /+ Potential wrapper function: |
|---|
| 78 | 89 | // Template to call function, catching exceptions: |
|---|
| r32 |
r33 |
|
| 16 | 16 | /** Just a temporary place to put SDL Init and Video stuff. |
|---|
| 17 | 17 | */ |
|---|
| 18 | | module mde.SDL; |
|---|
| | 18 | module mde.sdl; |
|---|
| 19 | 19 | |
|---|
| 20 | 20 | import mde.scheduler.initFunctions; |
|---|