mirror of
https://github.com/zeldaret/tp
synced 2026-06-23 17:25:24 -04:00
c_API
This commit is contained in:
@@ -3,4 +3,8 @@
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
typedef void (*cAPIGph_Mthd)(void);
|
||||
|
||||
extern cAPIGph_Mthd g_cAPI_Interface[6];
|
||||
|
||||
#endif /* C_API_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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user