Sign in to follow this  
The Sixth Fret

About what a beginner should know

Recommended Posts

Hi everyone, im a newbie programmer, so i want to ask, what things should i know to start working with OpenGL I've seen Nehe's OpenGl tutorial and I quite understand them, but there's one thing i cant figure out. Which is the order of execution of a code like the ones in the tutorials? I've seen some C++ code and it should include a MAIN, and all the other things are just functions, but in wich order do they execute? Please answer so I can have a general look of what I'm lacking to start doing things Thanx!

Share this post


Link to post
Share on other sites
The only function that runs by default is the main function (main is a function also), the main function can call other functions (every function can call other functions).

Share this post


Link to post
Share on other sites
Hey,
Are you comfortable with c++ and know some concepts in graphics?
Just reading some c++ code won't help. You must know the basics. You can pick up any introductory book or go through a tutorial.
Do spend some time with general computer grahics concepts before starting with OpenGL.

If you start OpenGL directly, then you may be thrilled at your initial success, but your further advancement will be slow.

All the best.

Share this post


Link to post
Share on other sites
Have look around the program you are using to view and ompile the code (ie MSVC, DevC++ whatever) and look for debug options. Look for an option to "step into" the code (or similar).

This will take you one line of code at a time through the program.

That way you can follow the execution of the code.

If will start with the main() function as that is where the operating system begins execution.

I actually think starting with OpenGL C++ was a really good way to start out. It kept me motivated and I've programmed purely as a hobby ever since. A book like Herb Schildt's C++ Reference may help you out. Head to your local library and grab as many books on C/C++ as you can.

Share this post


Link to post
Share on other sites
I would recomend you to get a good book.
Like "Computer graphics using openGL" (http://cwx.prenhall.com/bookbind/pubbooks/hill4/).
or "opengl game programing" witch is featured on the NeHe front page.

other than that just start coding stuff, practice makes perfect.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this