diff options
Diffstat (limited to 'include/SSystem/SComponent')
| -rw-r--r-- | include/SSystem/SComponent/c_API.h | 4 | ||||
| -rw-r--r-- | include/SSystem/SComponent/c_API_graphic.h | 4 | ||||
| -rw-r--r-- | include/SSystem/SComponent/c_m3d_g_cyl.h | 26 |
3 files changed, 34 insertions, 0 deletions
diff --git a/include/SSystem/SComponent/c_API.h b/include/SSystem/SComponent/c_API.h index 8cae06f3cb..0813ef82cf 100644 --- a/include/SSystem/SComponent/c_API.h +++ b/include/SSystem/SComponent/c_API.h @@ -3,4 +3,8 @@ #include "dolphin/types.h" +typedef void (*cAPIGph_Mthd)(void); + +extern cAPIGph_Mthd g_cAPI_Interface[6]; + #endif /* C_API_H */ diff --git a/include/SSystem/SComponent/c_API_graphic.h b/include/SSystem/SComponent/c_API_graphic.h index 2d9d8c2b7a..2419b4bfd4 100644 --- a/include/SSystem/SComponent/c_API_graphic.h +++ b/include/SSystem/SComponent/c_API_graphic.h @@ -3,4 +3,8 @@ #include "dolphin/types.h" +void cAPIGph_Painter(void); +void cAPIGph_BeforeOfDraw(void); +void cAPIGph_AfterOfDraw(void); + #endif /* C_API_GRAPHIC_H */ diff --git a/include/SSystem/SComponent/c_m3d_g_cyl.h b/include/SSystem/SComponent/c_m3d_g_cyl.h index e5d0da31e7..292ce0080e 100644 --- a/include/SSystem/SComponent/c_m3d_g_cyl.h +++ b/include/SSystem/SComponent/c_m3d_g_cyl.h @@ -2,5 +2,31 @@ #define C_M3D_G_CYL_H #include "dolphin/types.h" +#include "SSystem/SComponent/c_xyz.h" + +// Cylinder +struct cM3dGCylS { + cXyz mCenter; + f32 mRadius; + f32 mHeight; +}; +class cM3dGSph; + +class cM3dGCyl : public cM3dGCylS { +public: + cM3dGCyl(const cXyz*, f32, f32); + ~cM3dGCyl(); + void Set(const cM3dGCylS&); + void Set(const cXyz&, f32, f32); + void SetC(const cXyz&); + void SetH(f32); + void SetR(f32); + bool cross(const cM3dGSph*, cXyz*) const; + bool cross(const cM3dGCyl*, cXyz*) const; + void calcMinMax(cXyz*, cXyz*); + const cXyz& GetCP(void) const { return mCenter; } + f32 GetR(void) const { return mRadius; } + f32 GetH(void) const { return mHeight; } +}; #endif /* C_M3D_G_CYL_H */ |
