Init of physX Alhamdullah!

This commit is contained in:
bloeys
2022-01-16 01:30:28 +04:00
parent 8cac421ab0
commit a93e9fd7d1
5 changed files with 49 additions and 0 deletions

20
pgo/pgo.go Executable file
View File

@ -0,0 +1,20 @@
package pgo
/*
#cgo CPPFLAGS: -I physx-c
#cgo LDFLAGS: -L ./libs -l physx-c
#include <wrap.cxx>
#include <stdlib.h> //Needed for C.free
//Functions
struct CPxFoundation* NewCPxFoundation();
void FreeCPxFoundation(struct CPxFoundation*);
*/
import "C"
func Test() {
x := C.NewCPxFoundation()
println("Result:", x)
C.FreeCPxFoundation(x)
}