cd_vcollide.h
Go to the documentation of this file.
1 #ifndef CD_VCOLLIDEH
2 #define CD_VCOLLIDEH
3 
13 #if _HAVE_VCOLLIDE
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18  #include "htransform.h"
19  #include "boolean.h"
20 #ifdef __cplusplus
21 }
22 #endif
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
33  typedef void Tvcollide;
34 
42  Tvcollide *InitVcollide();
43 
44 
61  unsigned int AddPolyhedron2Vcollide(double **v,unsigned int nf,unsigned int *nvf,unsigned int **fv,Tvcollide *vc);
62 
72  void ActivateCollisionsVcollide(unsigned int o1,unsigned int o2,Tvcollide *vc);
73 
83  void DeactivateCollisionsVcollide(unsigned int o1,unsigned int o2,Tvcollide *vc);
84 
94  void MoveVcollideObject(unsigned int o,THTransform *t,Tvcollide *vc);
95 
105  boolean VcollideTest(Tvcollide *vc);
106 
115  void DeleteVcollideObject(unsigned int o,Tvcollide *vc);
116 
124  void DeleteVcollide(Tvcollide *vc);
125 
126 #ifdef __cplusplus
127 }
128 #endif
129 
130 #endif
131 
132 #endif
Definition of the boolean type.
unsigned int AddPolyhedron2Vcollide(double **v, unsigned int nf, unsigned int *nvf, unsigned int **fv, Tvcollide *vc)
Adds a polyhedron to the vcollide object.
Definition: cd_vcollide.cpp:30
void MoveVcollideObject(unsigned int o, THTransform *t, Tvcollide *vc)
Moves a given v-collide object.
Definition: cd_vcollide.cpp:78
A homgeneous transform in R^3.
void Tvcollide
The Vcollide object.
Definition: cd_vcollide.h:33
void DeleteVcollideObject(unsigned int o, Tvcollide *vc)
Deletes a given vcollide object.
void ActivateCollisionsVcollide(unsigned int o1, unsigned int o2, Tvcollide *vc)
Activates the collision between a pair of objects.
Definition: cd_vcollide.cpp:60
Definition of the THTransform type and the associated functions.
void DeactivateCollisionsVcollide(unsigned int o1, unsigned int o2, Tvcollide *vc)
Deactivates the collisions between a pair of object.
Definition: cd_vcollide.cpp:69
Tvcollide * InitVcollide()
Initializes a Vcollide object.
Definition: cd_vcollide.cpp:21
void DeleteVcollide(Tvcollide *vc)
Deletes a vcollide object.
boolean VcollideTest(Tvcollide *vc)
Test for collision.
Definition: cd_vcollide.cpp:87