Mercurial > projects > mde
diff mde/font/FontTexture.d @ 83:2813ac68576f
Start of creating a separate gui demo module and leaving mde.d for testing.
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Sat, 30 Aug 2008 10:54:32 +0100 |
parents | 66d555da083e |
children | 56c0ddd90193 |
line wrap: on
line diff
--- a/mde/font/FontTexture.d Thu Aug 07 11:25:27 2008 +0100 +++ b/mde/font/FontTexture.d Sat Aug 30 10:54:32 2008 +0100 @@ -301,7 +301,7 @@ format = (fontOpts.renderMode & RENDER_LCD_BGR) ? GL_BGR : GL_RGB; } else if (b.pixel_mode == FT_Pixel_Mode.FT_PIXEL_MODE_LCD_V) { - // NOTE: Notes above apply. Only in this case converting the buffers seems essential. + // NOTE: Notes above apply. But in this case converting the buffers seems essential. buffer = new ubyte[b.width*b.rows]; for (uint i = 0; i < b.rows; ++i) for (uint j = 0; j < b.width; ++j) @@ -456,12 +456,15 @@ enum { RENDER_LCD_BGR = 1 << 30 } OptionsFont fontOpts; class OptionsFont : Options { - /* renderMode should be FT_LOAD_TARGET_NORMAL, FT_LOAD_TARGET_LIGHT, FT_LOAD_TARGET_LCD or - * FT_LOAD_TARGET_LCD_V, possibly with bit 31 set (see RENDER_LCD_BGR). - * FT_LOAD_TARGET_MONO is unsupported. + /* renderMode have one of the following values, possibly with bit 31 set (see RENDER_LCD_BGR): + * FT_LOAD_TARGET_NORMAL (0x00000) + * FT_LOAD_TARGET_LIGHT (0x10000) + * FT_LOAD_TARGET_LCD (0x30000) + * FT_LOAD_TARGET_LCD_V (0x40000) + * The mode FT_LOAD_TARGET_MONO (0x20000) is unsupported. * * lcdFilter should come from enum FT_LcdFilter: - * FT_LCD_FILTER_NONE = 0, FT_LCD_FILTER_DEFAULT = 1, FT_LCD_FILTER_LIGHT = 2 */ + * FT_LCD_FILTER_NONE (0), FT_LCD_FILTER_DEFAULT (1), FT_LCD_FILTER_LIGHT (2) */ mixin (impl!("int renderMode, lcdFilter;")); static this() {