PDA

View Full Version : Loading Images? Help! I'm moving my VB OpenGL project to C++



Jack
04-12-2002, 08:32 PM
I've been programming OpenGL for quite some time, but I've been doing so in VB.

For loading and manipulating images I have writen my own classes - in VB - but can't use them any more.

Can some one tell me how to load images in C for use with OpenGl, preferable without having to deal with file handles and streams and such.

p.s I cannot use GLUT through Borland VC++ because I am missing the file "winmm.lib" and cannot find it anywhare.

Michael Steinberg
04-13-2002, 02:40 AM
Check out DevIL, its a library for loading images of various formats.
http://openil.sourceforge.net/

04-13-2002, 02:34 PM
How do you think you are going to load *anything* without file I/O?

It isn't that hard, and there are tons of tutors available. Check www.google.com. (http://www.google.com.)

Jack
04-13-2002, 07:21 PM
Originally posted by MagMan:
How do you think you are going to load *anything* without file I/O?

It isn't that hard, and there are tons of tutors available. Check www.google.com. (http://www.google.com.)

Sorry, I was a little unclear. I simply meant; so that "I" don't have to deal with file I/O for images as, presumably, people have already written class (and API's) to do exactly that. It's mostly because I'm a slack bastard, but also because I will never get the same results as people who have worked on that specifically, I'd rather stand on their shoulders for this, and concentrate more on other aspects of my project.

Omaha
04-13-2002, 07:25 PM
DevIL is very useful, I've used it a few times, but I wish they'd just pick a name and stick with it!

I've seen no less than four variations on the title.