Hi guyz,
could anyone please assist me with a code to load an image bmp, pln etc in C++. I'm using OpenGL Library. Please assist, in dire need.

Joel

Hi guyz,
could anyone please assist me with a code to load an image bmp, pln etc in C++. I'm using OpenGL Library. Please assist, in dire need.

Joel

Here's a thread with a code snippet I put up a while ago. This will work for .bmp files at least to get you started.

Anything else, you should be able to find on Google. Also, you can check out nehe.gamedev.net, which is an excellent OpenGL tutorial site. You can find some other tutorials on www.gamedev.net too.

I recommend using the devIL library. Let them handle loading images.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.