Hello Guest

16Bit Textures?

  • 1 Replies
16Bit Textures?
« on: February 02, 2006, 17:24:46 »
Is there a way to use 16Bit textures?

Using 24 and 32bit is no problem, but when i though about using 16bit textures i didn't found an apropriate glEnum. GL_RGB (24) and GL_RGBA(32)  can't be used and the Red Book says to use always GL_RGBA.

Or is there another way to do this, like via using palettes?


« Reply #1 on: February 02, 2006, 18:26:32 »
I'm not sure of this (I did a quick search on Google  :lol: ), but I think passing in GL_RGB5_A1 or GL_RGBA4 should give you 16 bit color. From the looks of it there is no GL_R5G6B5, so if you don't have alpha, I don't know  :)
Programmers will, one day, rule the world... and the world won't notice until its too late.Just testing the marquee option ;D