Re: Bitmap fonts with SDL / OpenGL |
karx11erx
Guest
|
If you are using palettized bitmaps, create a corresponding RGBA image from your bitmap with alpha = 0 where the transparent pixels are. If the bitmaps are already RGB, replace the transparent pixels' color with black (0,0,0) and set their alpha to 0 again in the RGBA texture. Then load the texture up to OpenGL. You don't need to use ortho view to render your fonts, just set blend mode to GL_ALWAYS and disable depth checking. Guilherme De Sousa <g_hds <at> yahoo.co.uk> writes: |
|||||||||||||
|