Font Help
Im trying to do my own font class, for part of a school project..
But basically, i read in a raw file of a black and white image that defines the picture...I would like to cut up the image into 16x16 blocks...(the original image is 1024x1024)...
So i have an array of 256 which is holding a struct that is a 64x64 array with 4 elements (RGBA) values. As i read in the data from the original picture, if its black, then i put r=g=b=a=0, but if it is whte, then i put r=g=b=a=255...basicaly, the black is invisible and the white is opaque so it can be seen on the screen...
Then i attempt to do a glTexImage2D with each of the 256 arrays of 64x64 (So i can make 256 little images that will contain the font character)...
Then for printing i make a square and texture map it with the appropriate letter...but this doenst work..i just get a white box....anyone have any ideas to what im doing wrong?
-NPC
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement