summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorlepelog <lepelog@users.noreply.github.com>2021-04-01 00:15:05 +0200
committerlepelog <lepelog@users.noreply.github.com>2021-04-01 00:15:05 +0200
commit87bc0e711b4fb2f990f3c37ca681be1fc027d554 (patch)
tree77379a9d953b9f63472d78f9ebec9a12a00b277c /include
parent0b09be34fb4f1e06e9627ec8670def708386fcf1 (diff)
c_API
Diffstat (limited to 'include')
-rw-r--r--include/SSystem/SComponent/c_API.h4
-rw-r--r--include/SSystem/SComponent/c_API_graphic.h4
-rw-r--r--include/SSystem/SComponent/c_m3d_g_cyl.h26
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 */