View Full Version : draw in windows
10-08-2005, 10:54 AM
hello, I would like to use opengl in a window and draw only half size (width/2 and height/2) and use the unused part for GDI. I have tried to change viewport and it work but It clear all the window and not only the quarter I want.. Any idea ?
10-08-2005, 12:38 PM
create a child window within the main window;
create a gl context and use MakeCurrent/SwapBuffers
with reference to the child window's hdc.
10-08-2005, 12:49 PM
I'm inclined to think the scissor test may be an easier way?
Not quite sure if it would work properly, though... are you double buffering? That would most likely muck things up.
10-09-2005, 06:03 AM
thank you, I am trying to make it..
What is scissor test ? Yes double buffer...
Powered by vBulletin® Version 4.2.2 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.