View Full Version : opengl initialization for the Multiple document interface
07-29-2003, 11:05 PM
Using windows API to create a MDI application. I deliberately render opengl scene in one of the child window. However ,it seems that i have to manually resize the window by mouse to activate the opengl rendering.
07-30-2003, 06:54 AM
Sounds like you aren't calling your resize function during initialization, so your OpenGL RC has no idea what coordinates it is using, etc.
07-31-2003, 01:11 AM
Thanx a lot friend,i have solved my problem,Even i have multi-windows for displaying OpenGL .and i use wglMakeCurrent before rendering every single window. Even with that ,i must use wglMakeCurrent at the time of creating GL window.
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.