|
Post by NeX on Feb 7, 2015 2:58:18 GMT -8
hi there,
the scissor function defines an area on the screen and after that all drawing command happen within that area only. how do i end the scissor function to continue drawing over the entire screen?
must i leave all scissor commands to the end of the program?
thanks
|
|
|
Post by jamesbowman on Feb 7, 2015 15:17:22 GMT -8
There are a couple of ways of ending the scissor. You can do something like:
GD.ScissorXY(A, B); GD.ScissorSize(C, D);
// scissored drawing here
GD.ScissorXY(0, 0); GD.ScissorSize(480, 272);
or a little more elegantly:
GD.SaveContext();
GD.ScissorXY(A, B); GD.ScissorSize(C, D);
// scissored drawing here
GD.RestoreContext();
|
|
|
Post by NeX on Feb 8, 2015 0:31:37 GMT -8
Thank you so much James, you are a great help!
|
|