Mercurial > hg > old > magoroku_racing
view col.h @ 95:b0249b856488
change_ps2util
author | Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 26 May 2011 18:13:40 +0900 |
parents | cb6c6de125dc |
children | 0b65ca27f113 |
line wrap: on
line source
#ifndef COL_H #define COL_H #include "libps2.h" #include "stdbool.h" typedef struct detection_face { FVECTOR p0; FVECTOR v0; FVECTOR v1; FVECTOR normal; } ColFace, *ColFacePtr; typedef struct col_face_handler { ColFacePtr colface; void* free_addr; int facenum; } ColFaceHd; extern void col_init(ColFaceHd* hd, PolygonInfo* face); extern bool col_detect(ColFaceHd* hd, FVECTOR pose, FVECTOR p); bool col_detect_approx(FVECTOR p, FVECTOR v0, FVECTOR v1); #endif //FVECTOR p, FVECTOR v0, FVECTOR v1);