Just started learning OpenGL and couldn't find a decent tutorial to get me moving. In particular, I'm looking for something that will show me how to load an image into an OpenGL texture, save it in a variable displayed later, and then draw the image.
I would appreciate it if someone could write some basic code to do this for me. If I may ask that you also separate the code for loading and drawing, and also carefully comment on what is happening.
Significant obligation
source
share