Author Topic: Palettes?  (Read 3466 times)

Akari

  • Moderator
  • *
  • Posts: 766
    • View Profile
Palettes?
« on: 2006-06-02 18:13:49 »
I'm working on Fonts, Windows and other elements and met some sort of trouble.
All interface elements stored in 4bpp tim... there are more than 10 palettes there. If I render texture with direct colors it will be more than 10 200kbytes textures that are permanently loaded... I think this is too much.

Did someone work with indexed textures in opengl? How can I set palettes, load texture and change palette during render?

sfx1999

  • *
  • Posts: 1142
    • View Profile
Re: Palettes?
« Reply #1 on: 2006-06-02 20:14:00 »
Avoid palettes if you can; a good deal of modern cards can NOT use paletted textures, even some top of the line ones. Convert them to another form instead. This is why some people have to use the ATI patch.

Alternatively, you could try GLText to render true type fonts.