Mercurial > hg > old > magoroku_racing
annotate col.h @ 112:5106d8d12ded
Changing Magoroku.cc
author | Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 09 Jun 2011 14:59:24 +0900 |
parents | 0b65ca27f113 |
children | 6ef3b0efdeaf |
rev | line source |
---|---|
90
8edae89a3877
compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
1 #ifndef COL_H |
8edae89a3877
compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
2 #define COL_H |
8edae89a3877
compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
3 |
91 | 4 #include "libps2.h" |
5 #include "stdbool.h" | |
6 | |
7 | |
0 | 8 typedef struct detection_face { |
91 | 9 FVECTOR p0; |
10 FVECTOR v0; | |
11 FVECTOR v1; | |
12 FVECTOR normal; | |
0 | 13 } ColFace, *ColFacePtr; |
14 | |
15 typedef struct col_face_handler { | |
16 ColFacePtr colface; | |
17 void* free_addr; | |
18 int facenum; | |
19 } ColFaceHd; | |
20 | |
96
0b65ca27f113
compile on Mac OS X 2
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
91
diff
changeset
|
21 void col_init(ColFaceHd* hd, PolygonInfo* face); |
0b65ca27f113
compile on Mac OS X 2
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
91
diff
changeset
|
22 bool col_detect(ColFaceHd* hd, FVECTOR pose, FVECTOR p); |
91 | 23 |
24 | |
25 bool col_detect_approx(FVECTOR p, FVECTOR v0, FVECTOR v1); | |
90
8edae89a3877
compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
26 |
8edae89a3877
compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
27 |
8edae89a3877
compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
28 #endif |
8edae89a3877
compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
29 |