buddy
buddy

Reputation: 861

OpenGL subwindows

I am writing a small program in OpenGL on my Mac. I have a question considering subwindows. I have created two subwindows in my main window. Everything works fine to that point. I can draw in both of them. But i want something different. I want to draw (with my mouse) in one window and simultanously get a drawing in the other window.

Now its not even possible to get the same drawing in both windows. If i want to see something i always have to draw in that one particular window.

Do you have some ideas maybe how to do this. Or do you have an example perhaps. Unfortunately i couldnt find much information on the topic "subwindows".

Upvotes: 0

Views: 693

Answers (1)

datenwolf
datenwolf

Reputation: 162297

OpenGL is not a scene graph. All what it gives you are the computer equivalents of pencils and crayons. So you draw something to a framebuffer, it will show up in only that one framebuffer.

You want to draw a scene from multiple vantage points? Then you have to draw that scene multiple times from those choosen vantage points to the designated viewports.

Upvotes: 2

Related Questions