LWJGL
May 20, 2012, 23:09:59 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL 2.8.3 released!
 
   Home   Help Search Login Register  



Pages: [1]
  Print  
Author Topic: 16Bit Textures?  (Read 2349 times)
Evil-Devil
Prolific Timewaster
****
Posts: 268



WWW
« on: February 02, 2006, 09: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?

Benny
Logged
Fool Running
Nerdus Imperius
*****
Posts: 647


« Reply #1 on: February 02, 2006, 10: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  Smiley
Logged

Programmers will, one day, rule the world... and the world won't notice until its too late.Just testing the marquee option Grin
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!