Capsule geometry

This commit is contained in:
bloeys
2022-01-28 02:01:08 +04:00
parent 0997e2ef30
commit 2648e5743e
6 changed files with 56 additions and 6 deletions

View File

@ -0,0 +1,19 @@
#ifndef CPxCapsuleGeometry_H
#define CPxCapsuleGeometry_H
#ifdef __cplusplus
extern "C" {
#endif
struct CPxCapsuleGeometry
{
CPxReal radius, halfHeight;
};
CPxAPI CPxInline CSTRUCT CPxCapsuleGeometry NewCPxCapsuleGeometry(CPxReal radius, CPxReal halfHeight);
#ifdef __cplusplus
}
#endif
#endif // !CPxCapsuleGeometry_H

View File

@ -3,6 +3,7 @@
#include "CPxBoxGeometry.h"
#include "CPxSphereGeometry.h"
#include "CPxCapsuleGeometry.h"
#ifdef __cplusplus
extern "C" {
@ -27,12 +28,14 @@ extern "C" {
CENUM CPxGeometryType type;
};
CPxAPI CPxInline CSTRUCT CPxSphereGeometry CPxGeometry_toCPxSphere(CSTRUCT CPxGeometry);
CPxAPI CPxInline CSTRUCT CPxSphereGeometry CPxGeometry_toCPxSphereGeometry(CSTRUCT CPxGeometry);
CPxAPI CPxInline CSTRUCT CPxGeometry CPxSphereGeometry_toCPxGeometry(CSTRUCT CPxSphereGeometry*);
CPxAPI CPxInline CSTRUCT CPxBoxGeometry CPxGeometry_toCPxBox(CSTRUCT CPxGeometry);
CPxAPI CPxInline CSTRUCT CPxBoxGeometry CPxGeometry_toCPxBoxGeometry(CSTRUCT CPxGeometry);
CPxAPI CPxInline CSTRUCT CPxGeometry CPxBoxGeometry_toCPxGeometry(CSTRUCT CPxBoxGeometry*);
CPxAPI CPxInline CSTRUCT CPxCapsuleGeometry CPxGeometry_toCPxCapsuleGeometry(CSTRUCT CPxGeometry);
CPxAPI CPxInline CSTRUCT CPxGeometry CPxCapsuleGeometry_toCPxGeometry(CSTRUCT CPxCapsuleGeometry*);
#ifdef __cplusplus
}