VG3_coll_q_getobjs()
[added in version 1.4]
Get collision values for all occurrences of an object-instance from a quadtree.
SYNTAX
int
VG3_coll_q_getobjs(struct vg3_quadtree *qdtr,
void *optr,
struct vg3_coll **pcoll)
FUNCTION PARAMETERS
qdtr | Quadtree |
optr | Object-instance (see element optr of struct vg3_coll) |
pcoll | For returning all related collision values, must be freed with free() |
RETURN VALUE
Returns integer:
- 0: Object-instance not found
- >0: Number of Object-instance found and returned in pcoll
DESCRIPTION
Get all occurrences of collision values for an object-instance from a quadtree.
This is mainly the information of the collision rectangle
and mostly useful only for debug purposes.
SEE ALSO