Below is a copy of my yahoo answers post. You can watch the video to see most of the code.
Btw, I'm happy to be here, and I hope you can help me with this problem I'm having
Thanks in advance, tarik00555.
Well, I was bored and put random stuff in youtube, and eventually I put "make a game C++".
So this great tutorial series comes up and I decide to follow it as I have some experience in C++.
The first thing that anoyed me is that at one point I put in that if you click R the window will go red.
It didn't work, as soon as I closed the program one brief second it would go red and shut down.
I deleted that part of the code as it wasn't important anyway. But this annoys me. I show and highlight a part of code wich should draw a diagonal from 0, 0 to 800, 600. And you can see in the video that the screen is white. And the screen shouldn't be all white in the first place(I think it should be some greyish).
Without looking at anything...
I haven't done much in OpenGL but if I remember correctly nVidia have/had an issue where everything had to be a power of two. I.e. drawing something 32 * 32 or 32 * 64 and so on works but nothing else. It might be totally unrelated or outdated but I would at least try it.
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by
definition, not smart enough to debug it.
- Brian W. Kernighan