Skip to main content
gamedev.net
🔒 Locked

Windowed GL

Started by jonbell Jun 1, 2003 at 6:25 PM 2 replies 450+ views
Original Post
jonbell
jonbell
2 Questions. Firstly i am trying to render into a win32 window in windowed mode, when i maximize the window rendering stops. Why? Secondly i have 4 windows (they are seperate windows) like in Max and i want to render the same scene into each using a differant view. To do this is it just a case of starting OpenGL as normal and use my main window to create the PFD etc then when i render into each of my sub windows do i just have to call wglMakeCurrent b4 i render? cheers
jonbell
jonbell
Is there a certain window style that must be set to allow OGL rendering in it? I am using a fairly simple style :
WS_POPUP | WS_DLGFRAME

Also what about my 2nd question?

[edited by - jonbell on June 2, 2003 4:31:34 AM]
blizzard999
blizzard999
OpenGL allow you only one rendering context per application;
if your app use more windows call wglMakeCurrent(...) when you want to render to a different window (pass the HGLRC you have created in your init function)

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.