Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Reset Scissor

Author
Message
Jambo B
14
Years of Service
User Offline
Joined: 17th Sep 2009
Location: The Pit
Posted: 28th Feb 2015 16:01
Hello all,

I'm messing around with SetScissor() to do some sprite pasting onto images.

Does anyone know an easy way to restore the scissor values back to their defaults later in the program after I've finished messing with them? I'm not sure what the scissor defaults should be. Device width? Screen bounds?

Thanks,

James
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 28th Feb 2015 20:52
0,0,0,0 should use the full screen.
else maybe
GetScreenBoundsBottom
GetScreenBoundsLeft
GetScreenBoundsRight
GetScreenBoundsTop
GetVirtualHeight
GetVirtualWidth

AGK 108 (B)19 + AppGameKit V2 Alpha .. : Windows 8.1 Pro 64 Bit : AMD Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
Jambo B
14
Years of Service
User Offline
Joined: 17th Sep 2009
Location: The Pit
Posted: 1st Mar 2015 12:48
Thank Markus - the ScreenBounds commands worked.

James

Login to post a reply

Server time is: 2024-04-25 18:26:21
Your offset time is: 2024-04-25 18:26:21