This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Collision Detection


Collision Detection

Postby mitch » Oct 9, 2004 @ 5:19pm

I read on the docs that you can use the intersect function of CGapiSurface to test whether two surfaces collide.

I read over the function and have used a (non-gapi) collision detection function before, but Im mixing up my x and ys here.

So here are a few questions:

1.) Can the two surfaces be the same surface?
2.) I want to test if two images collide tha are blitted onto the BackBuffer. To do this I would set the x and y's in the Intersect function to 0, 0 correct? (Both)
3.) For the RECT type, I read the struct being top, left, bottom, right or something close to that. Is that the same as x, y (top left), width, height? That is what im used to.
mitch
pm Member
 
Posts: 17
Joined: Aug 19, 2004 @ 5:36am


Postby fzammetti » Oct 11, 2004 @ 5:37am

...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Return to GapiDraw


Sort


Forum Description

The Cross-platform Graphics SDK for Palms, Pocket PCs, Symbian Devices, and Stationary PCs.

Moderators:

sponge, Johan

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron