VgaGames4 - collision man-pages

[.. upper level ..]

vg4->collision->create()

Create a collision-tag.

SYNTAX
unsigned int vg4->collision->create(const struct VG_Rect *rect, int max_rect, int max_level)

FUNCTION PARAMETERS
rect Rectangle, which shall be covered by the collision-tag, or NULL = whole window
max_rect Maximal number of rectangles before sub-levels of quadtrees are created, or 0 = default
max_level Maximal number of sub-levels, or 0 = default

RETURN VALUE
Returns the collision-tag

DESCRIPTION
Create a collision-tag. As there may be different collision-species, e.g. default collision for destroying objects or long distance collision to start an action, each species must be defined by a unique collision-tag.

SEE ALSO
vg4->collision->destroy() vg4->collision->destroyall()