Loading A Picture in Opengl??

Hi All

Ive been at this for days now and i really cant understand how im supposed to do this :frowning: 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?

“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?