translations

I have built up an object using basic 2d shapes and placed it in my scene. I am now wanting to transform the object. Do I have to transform all the individual shapes or is there a way to transform the object itself?

(The object is made up of lines and rectangles.)

Thanks
#Simbad

Search for hierarchical transformations…

You can use glPushMatrix() glPopMatrix() to select how to do the translations.

glPushMatrix();
transform_entire_object_here
glPushMatrix();
local_transformation_of_some_part_of_object
glPopMatrix();
glPushMatrix();
transform_other_part_of_object
glPopMatrix();
glPopMatrix();

Hi,

Try to grab some simple stuft on this site… http://myopendemo.hypermart.net