Page 1 of 1
How do I clip a bitmap to only display the part on-screen?

Posted:
Aug 3, 2002 @ 1:51am
by Boo

Posted:
Aug 3, 2002 @ 4:40am
by Johan

Posted:
Aug 4, 2002 @ 9:38am
by DillRye

Posted:
Aug 5, 2002 @ 5:32pm
by Johan

Posted:
Aug 5, 2002 @ 6:39pm
by DillRye

Posted:
Aug 6, 2002 @ 5:40am
by BooRad
Thanks for the advise and code DillRye and sbl. I'm making an asteroids-type scrolling game and just kind of hit a mental block.


Posted:
Aug 11, 2002 @ 2:44am
by BooRad
What about rotation

Posted:
Aug 21, 2002 @ 11:09pm
by tedson
I was using almost the exact code above to clip my sprites but the problem I am running in to now is I am rotating the sprites by setting a rotation angle and passing GDBLT_ROTATIONANGLE to Blt. The problem is the width and height of the sprite are now different. Anyone know a good way around this one?
this looks like a time for a FEATURE REQUEST

Posted:
Aug 29, 2002 @ 12:54am
by thevicar

Posted:
Aug 29, 2002 @ 8:42pm
by DillRye
I believe just the normal Blt function has what your lookin for.......

Posted:
Aug 29, 2002 @ 8:49pm
by Johan
Yep...
And the next version of GapiDraw will also support a variable pivot point on the target surface with automatic clipping (so if you want to rotate a sprite and place it in the corner you no longer need to Blt with rotate to a temp surface and then copy/clip the result to the correct location).
I will announce a betaprogram of 1.1 next month...
/Johan