View Full Version : draw in windows
10-08-2005, 09: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, 11:38 AM
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, 11:49 AM
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, 05:03 AM
thank you, I am trying to make it..
What is scissor test ? Yes double buffer...
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.