duncan duncan wrote:
> Hello to everyone.
>
> I am writing an application that should show the same object on
> multiple MDI windows (of a Qt Application), which are the classic
> orthogonal views.
>
> My idea is to have a common routine to draw the object on the 4
> windows (every one has its own opengl view) and then
> set the viewport and/or the point of view to look at the object to see
> the correct orthogonal view
> (for 3 of them, the fourth is not a problem for now).
>
> Is this a good idea or there are other, more suitable, methods ?
>
You can either create 4 contexts with shared data, or create a single
context that you subdivide with viewports. IIRC it's easier to work with
the first. Either way, it's a perfectly fine way to go about the work AFAIK.
Take care,
Mike
--
________________________________________________
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
|