Original Post
unsigned char g_letterA[] =
{
0xC0, 0x03,
0xC0, 0x03,
0xC0, 0x03,
0xC0, 0x03,
0xC0, 0x03,
0xDF, 0xFB,
0x7F, 0xFE,
0x60, 0x06,
0x30, 0x0C,
0x18, 0x18,
0x18, 0x18,
0x0C, 0x30,
0x0C, 0x30,
0x07, 0xE0,
0x07, 0xE0
};
....
...
void Display()
{
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
glColor3f(1.0f, 1.0f, 1.0f);
glRasterPos2f(50, 50);
glBitmap(16, 16, 0.0f, 0.0f, 0.0f, 0.0f, g_letterA);
glutSwapBuffers();
return;
}
ok, I understand that this will draw the letter ''A'' to the screen.
I don''t understand what all the 0xC0 things are and how they translate into each bit being a 1 or 0. Could someone explain this to me?
The other thing I don''t understand is what the glPixelStorei() function does.