Page 1 of 1

StartClipedArea()

Posted: Sun Aug 07, 2005 8:52 am
by Fou-Lu
Sometimes you want to draw sprites just on a small part of the screen.

You could clip all of them one by one, but that wouldn't work for sprites3D.

You could also use UseBuffer() on a sprite with the desired size draw everything there and draw this sprite on the screen, but that would be really slow. My sugestion is:

StartClipedArea(X,Y,Width,Height)

;draw all stuff

StopClipedArea()

Posted: Sun Aug 07, 2005 8:03 pm
by Fred
I don't think than the second solution you told would be really slow (it would be really fast in fact) but the idea is good, i take good note.

Posted: Sun Aug 07, 2005 8:30 pm
by Fou-Lu
Alright, replace the "really slow" with "really slower". Indeed, it's fast, but not the same. :)

Posted: Sun Aug 07, 2005 10:58 pm
by Fred
not really slower, it will only involve an additional blit which is not really overkill.

Posted: Sun Aug 07, 2005 11:14 pm
by Fou-Lu
OK, replace the "really slower" with "just an insignificant bit slower". :lol:
I just said that because I notice difference in the frame rate of my game when I try that. But it's a very small difference.

Anyway you said you would take note, that's enough to make me happy. :wink:

Thanks.