Wrap some foundation+pvd classes

This commit is contained in:
bloeys
2022-01-16 04:08:38 +04:00
parent 4b2070cfe1
commit 845b0612dc
7 changed files with 117 additions and 11 deletions

View File

@ -9,8 +9,8 @@ extern "C" {
void* obj;
};
CPxAPI CSTRUCT CPxFoundation* NewCPxFoundation();
CPxAPI void FreeCPxFoundation(CSTRUCT CPxFoundation* cpf);
CPxAPI CSTRUCT CPxFoundation* CPxCreateFoundation();
CPxAPI void CPxFoundation_release(CSTRUCT CPxFoundation* cpf);
#ifdef __cplusplus
}
#endif

20
pgo/physx-c/CPxPvd.h Executable file
View File

@ -0,0 +1,20 @@
#ifndef __CPxPvd_H__
#define __CPxPvd_H__
#include "CPxFoundation.h"
#ifdef __cplusplus
extern "C" {
#endif
struct CPxPvd
{
void* obj;
};
CPxAPI CSTRUCT CPxPvd* CPxCreatePvd(CSTRUCT CPxFoundation*);
CPxAPI void CPxPvd_release(CSTRUCT CPxPvd* cpp);
#ifdef __cplusplus
}
#endif
#endif

18
pgo/physx-c/CPxPvdTransport.h Executable file
View File

@ -0,0 +1,18 @@
#ifndef __CPxPvdTransport_H__
#define __CPxPvdTransport_H__
#ifdef __cplusplus
extern "C" {
#endif
struct CPxPvdTransport
{
void* obj;
};
CPxAPI CSTRUCT CPxPvdTransport* CPxDefaultPvdSocketTransportCreate(const char* address, int port, int timeoutMillis);
CPxAPI void CPxPvdTransport_release(CSTRUCT CPxPvdTransport* cppt);
#ifdef __cplusplus
}
#endif
#endif