Dude my code is messed up because I leave stuff that I can in my code so I can come back to it later and my program flow is fine I can render 3d models to the screen and rotate the camera around with np and see them. I even coloured the models with no tex cords for fun and got this really cool model texture effect.
I was asking how to draw a line under the mouse cursor not a course of fixing my so called problems ??? that were needed enforcements for my ease of use. Some people prefer less stuff. I prefer more stuff .
For starting procedures of programming I would say go for the fastest language now that would be Binary/X86 Assembly but all in all most people in todays walks of life like most indie game companys/game companys Use C++ Programming Language for the speed and then use OpenGL for Cross Platform 3D Rendering,etc and SDL For Window Management.
There is other alternatives like using Win32 API ,QT Creator Kit ,freeGlut for Window Managements but I would personally guide you towards C++,SDL,OpenGL and to start you off in the right direction go for Lazy Foo Tutorials for SDL education and OpenGL your going to have to spam google and search through books and beg on irc if you want to learn anything its rather difficult otherwise for C++ learning watch thenewboston tutorials in C++
Hope this helps
for an IDE use Code::Blocks or Microsoft Visual Studio 2010 express free edition for C++