comparison mde/font/FontTexture.d @ 86:79d816b3e2d2

New InitStage system, Screen & Screen.Drawable, separate testing and guiDemo binaries. This (and the previous) commit are the result of several quite significant changes to mde. All the unittests run, but it hasn't had a huge amount of testing so don't be surprised if bugs show up.
author Diggory Hardy <diggory.hardy@gmail.com>
date Fri, 12 Sep 2008 17:36:14 +0100
parents 56c0ddd90193
children 97e6dce08037
comparison
equal deleted inserted replaced
85:56c0ddd90193 86:79d816b3e2d2
327 glBindTexture(GL_TEXTURE_2D, tex[0].texID); 327 glBindTexture(GL_TEXTURE_2D, tex[0].texID);
328 glEnable(GL_BLEND); 328 glEnable(GL_BLEND);
329 glBlendFunc (GL_ONE, GL_ONE_MINUS_SRC_COLOR); 329 glBlendFunc (GL_ONE, GL_ONE_MINUS_SRC_COLOR);
330 float[4] Cc = [ 1.0f, 1f, 1f, 1f ]; 330 float[4] Cc = [ 1.0f, 1f, 1f, 1f ];
331 glTexEnvfv(GL_TEXTURE_ENV, GL_TEXTURE_ENV_COLOR, Cc.ptr); 331 glTexEnvfv(GL_TEXTURE_ENV, GL_TEXTURE_ENV_COLOR, Cc.ptr);
332 glColor3f (1f, 0f, 0f);
333 332
334 glBegin (GL_QUADS); 333 glBegin (GL_QUADS);
335 glTexCoord2f (0f, 0f); glVertex2i (0, 0); 334 glTexCoord2f (0f, 0f); glVertex2i (0, 0);
336 glTexCoord2f (1f, 0f); glVertex2i (dimW, 0); 335 glTexCoord2f (1f, 0f); glVertex2i (dimW, 0);
337 glTexCoord2f (1f, 1f); glVertex2i (dimW, dimH); 336 glTexCoord2f (1f, 1f); glVertex2i (dimW, dimH);