PDA

View Full Version : Extent of construction



c.pergiel
09-06-2008, 01:47 PM
I am looking for a way to determine the largest dimensions of my construction so that I can center it in the display window. BeginQuery and EndQuery looks like it might work, but it looks a little cumbersome. Is there another way?

Zengar
09-06-2008, 01:54 PM
Compute the bounding box and center on it.

dletozeun
09-07-2008, 06:26 AM
this (http://opengl.org/resources/faq/technical/viewing.htm#view0070) may help you.