Mercurial > projects > mde
diff mde/gl/draw.d @ 48:a98ffb64f066
Implemented font rendering (grayscale only; i.e. non-LCD).
FontTexture creates a texture and caches glyphs.
Font supports multiple styles/faces, loaded from config file (should probably be loaded via Options instead).
TextBlock cache for glyph placement within a string.
committer: Diggory Hardy <diggory.hardy@gmail.com>
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Sat, 31 May 2008 12:40:26 +0100 |
parents | 0fd51d2c6c8a |
children | bca7e2342d77 |
line wrap: on
line diff
--- a/mde/gl/draw.d Fri May 23 13:13:08 2008 +0100 +++ b/mde/gl/draw.d Sat May 31 12:40:26 2008 +0100 @@ -26,6 +26,7 @@ import tango.time.Time; // TimeSpan (type only; unused) import tango.util.log.Log : Log, Logger; +import mde.resource.font; private Logger logger; static this () { logger = Log.getLogger ("mde.gl.draw"); @@ -37,6 +38,7 @@ glClear(GL_COLOR_BUFFER_BIT); gui.draw (); + FontStyle.drawTexture; GLenum err = glGetError(); if (err != GL_NO_ERROR) {