Code: Select all
int x,y=0;
while (x < 38) {
while (y < 64) {
blitAlphaImageToScreen(0 ,0 ,38 , 64, img_font1, x, y);
y += 64;
}
x += 32;
y = 0;
}
flipScreen();
where img_font1 is an Image* type with a png loaded in it the same way I load other textures in my program.
But fonts do not show up.. just my textured, filtered polygons: I inserted this piece of code in the gl draw cycle, so I suppose these functions are not compatible in some way (gl mode vs. no gl mode).
What do you suggest me to do to get through this? Making a set of mini-polygons each of them carrying one-font texture? (seems painful) or there's another call I can do different from blitAlphaImageToScreen to have this displayed in gl mode?
Thanks!
p.s. I do not have the text and fancytext examples in "samples" directory, just have a text sample which I cannot compile since it includes a "font.c" which I do not have.