Hi , having some experience with C++/OpenGL myself, I have some suggestions to improve this tutorial.
- Using glBegin()/glEnd() to draw primitives isn't considered good style anymore in modern OpenGL. Try an implementation based on Arrays instead (look up glDrawArrays)
- I expect that a new user will have difficulties to compile and link your example code. I'd suggest to provide a CMakeLists.txt with your source code.
- You include stdio.h, but you don't seem to use it anywhere in your code. I also advise to use
<iostream>in C++ code. - Indent code snippets with 4 space to achieve nicer rendering of code sections
Keep up with posting tutorials!
RE: How To Create A Home Object In 2-Dimensional Form Using C++ Programming