ok instead of enableing and disabling textures i found this makes it white
Code:
glBindTexture(GL_TEXTURE_2D, 0);
//glDisable(GL_TEXTURE_2D);
Courier.printf("I AM A BANANA");
//glEnable(GL_TEXTURE_2D);
But I can't make it any other color besides white.
Also here is how I load the font and text:
Code:
Text::Text(std::string name, int size, bool bold, bool underline, bool italic)
{
int weight;
if (bold)
weight = FW_BOLD;
else
weight = FW_NORMAL;
HFONT font;
HFONT oldfont;
base = glGenLists(96);
font = CreateFont( -size,
0, 0, 0,
weight,
italic,
underline,
false,
ANSI_CHARSET,
OUT_TT_PRECIS,
CLIP_DEFAULT_PRECIS,
ANTIALIASED_QUALITY,
FF_DONTCARE|DEFAULT_PITCH,
name.c_str()
);
oldfont = (HFONT)SelectObject(hDC, font);
wglUseFontBitmaps(hDC, 32, 96, base);
SelectObject(hDC, oldfont);
DeleteObject(font);
}