PDA

View Full Version : Loading A Picture in Opengl??



Ehsan_Liverpool
07-10-2011, 03:53 AM
Hi All

Ive been at this for days now and i really cant understand how im supposed to do this :( ive tried using OpenIL but couldnt get it to work. I tried using SOIL same as the above. if possible can some one give me a bit of code to help?

Alfonse Reinheart
07-10-2011, 04:06 AM
"couldnt get it to work" is about the least useful thing you could have said. What didn't work? Was DevIL unable to load the image? Did it upload incorrectly? Did the rendered triangle with texture not appear?

And most important of all, have you been successful at just generating an array of image data in C/C++ and passing it to OpenGL as a texture?