Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: Extent of construction

  1. #1
    Junior Member Newbie
    Join Date
    Sep 2008
    Location
    Silicon Forest
    Posts
    2

    Extent of construction

    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?

  2. #2
    Senior Member OpenGL Pro Zengar's Avatar
    Join Date
    Sep 2001
    Location
    Germany
    Posts
    1,979

    Re: Extent of construction

    Compute the bounding box and center on it.

  3. #3
    Senior Member OpenGL Pro dletozeun's Avatar
    Join Date
    Jan 2006
    Location
    FRANCE
    Posts
    1,370

    Re: Extent of construction

    this may help you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •