LWJGL
May 22, 2013, 21:48:04
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
LWJGL is now using GitHub
Home
Help
Search
Login
Register
LWJGL
>
Programming
>
Lightweight Java Library Game Development
>
DevIL alpha channel
Pages: [
1
]
« previous
next »
Print
Author
Topic: DevIL alpha channel (Read 2512 times)
amannis
Newbie
Posts: 5
DevIL alpha channel
«
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
DevIL alpha channel
«
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
DevIL alpha channel
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Programming
-----------------------------
=> Lightweight Java Library Game Development
=> LWJGL Documentation
=> Bug Reports / RFE
=> OpenGL
=> OpenAL
=> General Java Game Development
-----------------------------
Archive
-----------------------------
=> Resolved Bugs/RFE
=> DirectX
=> DevIL
=> FMOD
Loading...