Nobody in the "real world" bothers with GLUT since it''s very limiting. It''s great for throwing things together quickly, but should never be used for production code.
C++ is not a newer version of C. It''s kind of a tricky game. The most recent shipping incarnation of C++ is actually based upon a relatively old C standard—there''s a new one floating around that has yet to be fully implemented. There''s also a C++ standard that''s been drafted that incorporates the newest C standard, and it also has yet to be implemented.
Headers are used in exactly the same way in both C and C++. The only difference is that many headers will have their components wrapped in namespaces, something that''s obviously not possible in C. Otherwise, it''s the same, right down to the risk of multiple inclusion—which is why we still see "include guards".
Pointers are exactly the same between the two as well, though C++ also supports references and pointers-to-members which also are mechanisms for indirection. They''re often of relatively limited value for stylistic reasons (namely, the heated debate over pointers versus references, where many argue that using non-const references lead to ambiguous code as to whether the passed objects will be modified, since the code looks identical to pass-by-value).
Creating a window in OpenGL.
Thanx for all the posts,
I think ill finish all the c++ learning stuff first, then try to understand the basics of win32 because i heard more people speak that glut is to basic. then i''ll follow to advice given in the beginners section and try to make tetris and breakout and some other basic stuff and when i succesfully did that i''ll take a look again at how opengl works.
again thnx for the replies, they really made some things much clearer.
I think ill finish all the c++ learning stuff first, then try to understand the basics of win32 because i heard more people speak that glut is to basic. then i''ll follow to advice given in the beginners section and try to make tetris and breakout and some other basic stuff and when i succesfully did that i''ll take a look again at how opengl works.
again thnx for the replies, they really made some things much clearer.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement