Code:
bool InitializeGL()
{
glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
glShadeModel(GL_SMOOTH);
glEnable(GL_TEXTURE_2D);
if(!Image.LoadPcx("image.pcx")) return false;
glGenTextures(1, &Image.ID);
glBindTexture(GL_TEXTURE_2D, Image.ID);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
gluBuild2DMipmaps(GL_TEXTURE_2D, GL_RGBA, Image.imageWidth,
Image.imageHeight, GL_RGBA, GL_UNSIGNED_BYTE,
Image.image);
listBase = CreateFont("the Gingerbread House", 128);
listBase2 = CreateFont("the Gingerbread House", 48);
listBase3 = CreateFont("Arial", 12);
return true;
}
void RenderScene()
{
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glLoadIdentity();
glTranslatef(0.0f, 0.0f, -3.0f);
glColor3f(1.0f, 1.0f, 1.0f);
glBindTexture(GL_TEXTURE_2D, Image.ID);
glBegin(GL_QUADS);
glTexCoord2f(0.0, 1.0); glVertex3f(-1.5f, -1.5f, -2.0f);
glTexCoord2f(1.0, 1.0); glVertex3f(1.5f, -1.5f, -2.0f);
glTexCoord2f(1.0, 0.0); glVertex3f(1.5f, 1.5f, -2.0f);
glTexCoord2f(0.0, 0.0); glVertex3f(-1.5f, 1.5f, -2.0f);
glEnd();
glColor3f(1.0f, 1.0f, 1.0f);
glRasterPos2f(-0.41f, -0.05f);
PrintText(listBase, "Legend Breath");
glColor3f(1.0f, 1.0f, 1.0f);
glRasterPos2f(-0.40f, -0.04f);
PrintText(listBase, "Legend Breath");
glRasterPos2f(-0.42f, -0.04f);
PrintText(listBase, "Legend Breath");
glRasterPos2f(-0.40f, -0.06f);
PrintText(listBase, "Legend Breath");
glRasterPos2f(-0.42f, -0.06f);
PrintText(listBase, "Legend Breath");
glColor3f(0.7f, 0.7f, 0.7f);
glRasterPos2f(-0.07f, -0.2f);
PrintText(listBase2, "loading");
glColor3f(1.0f, 1.0f, 1.0f);
glRasterPos2f(-0.11f, -0.4f);
PrintText(listBase3, "www.legendbreath.cjb.net");
SwapBuffers(g_HDC);
}
I attached a JPG...