mirror of
https://github.com/bloeys/physx-go.git
synced 2025-12-29 07:58:20 +00:00
21 lines
345 B
Go
Executable File
21 lines
345 B
Go
Executable File
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)
|
|
}
|