Skip to main content
gamedev.net
🔒 Locked

Loading Images

Started by kag1 4 replies 600+ views
Original Post
kag1
kag1
Well I've recently read that using glaux.lib is not the desired way to do it anymore.. I'm wondering what most people use to load their images? Do people write their own library for such a thing? And if so where is there documentation on how to do so? Or is there another auxilary library out there that is now the dominent one to use to load images?
Instruo
Instruo
try out DevIL at http://openil.sourceforge.net

Loads a ton of formats and is really easy to use. Even has functions that'll make your GL textures for ya, if you're so inclined ;)
"Game Programming" in an of itself does not exist. We learn to program and then use that knowledge to make games.
nife
nife
I wrote my own image loading functions like many others have done.
I got the file specifications from www.wotsit.org, and then I made a bitmap and a targa loader.
24 or 32 bit bitmaps or targa's without RLE are pretty straight foreward. I certainly don't understand why people uses libraries for bitmap or targa loading since it only takes a couple of hours to make one yourself...
Killers don't end up in jailThey end up on a high-score!
Instruo
Instruo
because it takes less to do it with a library? ;) I'm certain there's a lot to be gained in knowledge by doing things yourself, but if you're inexperienced having libraries help you out a lot on doing stuff you don't necessarily understand yet. Not like you can't come back later with more knowledge and do it yourself if your need requires it.
"Game Programming" in an of itself does not exist. We learn to program and then use that knowledge to make games.
The_Nerd
The_Nerd
Dood!!! Ignore every ones post here and save yourself allot of time! Use sdl (www.libsdl.org), it not only rocks for setting up your Window for OpenGL, but it rocks in the line of input (Keyboard, Mouse, Joystick), it rocks in it's multi-threading capabilities, with it's RWOPS functions you can load an almost endless list of image formats, AND to top it all off it's OSI!
If that doesn't convince you, than you need to go get a checkup at the doctors. =P
-- I waz here --

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.