mirror of
https://github.com/bloeys/physx-go.git
synced 2025-12-29 07:58:20 +00:00
almost all objects contain only one pointer inside, making them very small, so no point paying (de)allocation costs. This has also been done to physx-c
26 lines
585 B
C
Executable File
26 lines
585 B
C
Executable File
#ifndef CPxShape_H
|
|
#define CPxShape_H
|
|
|
|
#include "CPxTransform.h"
|
|
#include "CPxFilterData.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
struct CPxShape
|
|
{
|
|
void* obj;
|
|
};
|
|
|
|
CPxAPI void CPxShape_setLocalPose(CSTRUCT CPxShape cs, CSTRUCT CPxTransform* tr);
|
|
CPxAPI CSTRUCT CPxTransform CPxShape_getLocalPose(CSTRUCT CPxShape cs);
|
|
CPxAPI CSTRUCT CPxFilterData CPxShape_getSimulationFilterData(CSTRUCT CPxShape cs);
|
|
CPxAPI void CPxShape_setSimulationFilterData(CSTRUCT CPxShape cs, CSTRUCT CPxFilterData* cfd);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // !CPxShape_H
|