stil
03-25-2001, 11:28 PM
hi, this is not really an advanced topic, but i have never seen it used : i would like to store some textures (fonts) using 1bit per pixel into the video card memory - that would allow me to store a lot of fonts http://www.opengl.org/discussion_boards/ubb/smile.gif
I've tried to do that using
glTeximage2D (GL_TEXTURE_2D, 0, GL_ALPHA, width, height, 0, GL_COLOR_INDEX, GL_BITMAP, bitmap1bit);
but all it does is giving me a black texture (all works well when i use a 8bit texture with glTexImage2D (GL_TEXTURE_2D, 0, GL_ALPHA8, width, height, 0, GL_ALPHA, GL_UNSIGNED_BYTE, bitmap8bit)).
I've been playing a bit with the glPixelMap settings, but i can't see any difference...
Thank you
I've tried to do that using
glTeximage2D (GL_TEXTURE_2D, 0, GL_ALPHA, width, height, 0, GL_COLOR_INDEX, GL_BITMAP, bitmap1bit);
but all it does is giving me a black texture (all works well when i use a 8bit texture with glTexImage2D (GL_TEXTURE_2D, 0, GL_ALPHA8, width, height, 0, GL_ALPHA, GL_UNSIGNED_BYTE, bitmap8bit)).
I've been playing a bit with the glPixelMap settings, but i can't see any difference...
Thank you