LWJGL
May 22, 2013, 21:48:04 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL is now using GitHub
 
   Home   Help Search Login Register  



Pages: [1]
  Print  
Author Topic: DevIL alpha channel  (Read 2512 times)
amannis
Newbie
*
Posts: 5


« on: January 06, 2005, 09:14:04 »

How can I check if an image has an alpha channel or not? I checked the DevIL docs but couldn't find anything.
I need to know if I have to pass RGB or RGBA for glTexImage2D().

I've been using ImageIO before and then I just always created an image of type BufferedImage.TYPE_4BYTE_ABGR and it worked fine with just passing RGBA to glTexImage2D().

I guess ILUT had somekind of texture loading method which did this automatically?
Logged
WiESi
Regular nerd
**
Posts: 70


« Reply #1 on: January 06, 2005, 10:15:57 »

I'm not sure, but look here:
http://openil.sourceforge.net/docs/il/f00027.htm
Try ilGet either with IL_IMAGE_FORMAT or IL_IMAGE_TYPE. I don't know exactly.

WiESi
Logged
amannis
Newbie
*
Posts: 5


« Reply #2 on: January 06, 2005, 10:26:52 »

Ah i should've looked more carefully, ilGetInteger(IL_IMAGE_FORMAT) did the trick.

Thanks!
Logged
Pages: [1]
  Print  
 
Jump to:  

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