PDA

View Full Version : glScissor



holy_moly
03-23-2000, 12:09 AM
hi,
i want to know the usual ways to "forbid" opengl to render stuff which is outside of the screen to get more speed(why should i render invisible things anyway?)
i read about glScissor but i can't figure it out.
just let me know how you do it,thanks

fenris
03-23-2000, 02:33 AM
glScissor() is used to clip a region in the viewport. OpenGL will automatically clip anything that is trying to be drawn outside of the viewport set by glViewport().

fshana
03-23-2000, 09:04 AM
I've found glScissor to be kind of redundant, glViewport does everything I need.
fs
http://fshana.tripod.com