mirror of
https://github.com/bloeys/physx-go.git
synced 2025-12-29 07:58:20 +00:00
Wrap some foundation+pvd classes
This commit is contained in:
@ -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
20
pgo/physx-c/CPxPvd.h
Executable 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
18
pgo/physx-c/CPxPvdTransport.h
Executable 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
|
||||
Reference in New Issue
Block a user