Sign in to follow this  

Rotating lists as a whole

This topic is 4836 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

You would do it the same way as if you were just using a function to draw the box.

Just:
glTranslate(where ever you want the pivot point to be)
glpushMatrix()
glRotate() //the rotate you asked about
glpushMatrix ()
for( all your boxes)
{
glpushMatrix () //dont do a load idenity here
glTranslate() // the one in the tutorial to posistion the box
glRotate() //the box rotation
glCallList() //draw the box
glPopMatrix()
}
glPopMatrix()

Share this post


Link to post
Share on other sites
Thanks! Whee, finally!!! You're my hero. ;)

Looks like I'll have to go over the lessons again. *sigh*

Does anybody know a reference doc listing all(or mainly used) GL functions, variables etc?

Share this post


Link to post
Share on other sites
The redbook is your best friend when you are learning ;)
http://www.gamedev.net/download/redbook.pdf

I find its best to play around with rotating, translating and scaling (with psuhing matrixs) once you learn what they do to get a real feel how to do any sort of movement.

Share this post


Link to post
Share on other sites
I find the OpenGL specification to be very lucid and clear, and it has a great index at the back. The PDF is free to download:

Version 1.5
Version 2.0

If your card is older, you may want to get something like the 1.3 specification instead, to avoid confusion.

You also need to remember that the Microsoft OpenGL DLL only exposes functions for version 1.1 of the API, so you have to load the rest of the API as you would load extensions. There are many libraries that help with this.

Share this post


Link to post
Share on other sites

This topic is 4836 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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