mirror of
https://github.com/bloeys/physx-go.git
synced 2025-12-29 07:58:20 +00:00
Init of physX Alhamdullah!
This commit is contained in:
20
pgo/pgo.go
Executable file
20
pgo/pgo.go
Executable 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)
|
||||
}
|
||||
Reference in New Issue
Block a user