Anyone got a nice little CopyRect type of function

BlitzMax Forums/BlitzMax Programming/Anyone got a nice little CopyRect type of function

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Method SetViewport( x,y,w,h )
If x=0 And y=0 And w=GraphicsWidth() And h=GraphicsHeight()
glDisable GL_SCISSOR_TEST
Else
glEnable GL_SCISSOR_TEST
glScissor x,GraphicsHeight()-y-h,w,h
EndIf
End Method