View Full Version : How to draw only on certain areas?
runggu
06-22-2002, 06:08 AM
Hello! I'm making 2d action game with split screen 2-player mode, the problem is that it player 2 screen draws over player 1's screen!
Use glViewport and glScissor to restrict drawing to a rectangle in the window.
runggu
06-22-2002, 09:46 PM
How to use scissors?
dorbie
06-23-2002, 12:33 AM
http://www.cs.uregina.ca/~cdshaw/OpenGL/glScissor.html
runggu
06-23-2002, 12:38 AM
Oh, i haven't enabled scissor test, so that was my probbie. Thnx!
runggu
06-23-2002, 06:40 AM
thanks, it works well now
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.