19 hours ago, GoliathForge said:I already did. When I saw that you were using immediate mode opengl, I pulled one of my older frameworks and replaced the content of my update and draw methods with the code posted above. Nothing else hidden. You are more than welcome to browse my ogl2 framework code if you wish. A link to the source I used is in this album, but again, on topic sample code is in the post above.
Thanks so much again for sharing the great source.
I will try to implement my code then can show here.
I think that I need to improve the C++ knowledge in OpenGL, especially in 3D computer graphic.