VgaGames 3 - Collision-detection man-pages

[.. upper level ..]

VG3_coll_q_remove()

Remove an object-instance from a quadtree.
SYNTAX
int VG3_coll_q_remove(struct vg3_quadtree *qdtr, void *optr)

FUNCTION PARAMETERS
qdtr Quadtree
optr Object-instance to remove (see element optr of struct vg3_coll)

RETURN VALUE
Returns 0 if OK or -1 on failure. Returns integer: - 0: Object-instance not found - 1: Object-instance removed

DESCRIPTION
Remove an object-instance from a quadtree. This should be done before moving the object-instance or when deleting it.

SEE ALSO
VG3_coll_q_insert() VG3_coll_q_getobj() VG3_coll_q_mark()