I realize the code is in C++, but the OpenGL is the part I'm questioning.
I've been trying to render a Texture to the screen... this is my third attempt... first time was in Intermediate mode, second with method removed in OpenGL 3.
I now have a shader (inside the initialize function) and the code to draw at the bottom. Currently nothing renders, I used to get a untextured quad until I fixed an error in the glUniform1ihttp://www.pastebucket.com/19567
This is the whole function.
Drawing starts at line 70
Can someone please help me, I mainly just need to see how it all fits together,
even a copy and paste from a working draw texture function or something that does the same would be sufficient from me to reverse engineer.