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

21
main.go
View File

@ -1,8 +1,23 @@
package main
import "github.com/bloeys/physx-go/pgo"
import (
"github.com/bloeys/physx-go/pgo"
)
func main() {
pgo.Test()
println("Hey!!")
f := pgo.CreateFoundation()
defer f.Release()
println("foundation:", f)
pvd := pgo.CreatePvd(f)
// defer pvd.Release()
println("Pvd:", pvd)
pvdTr := pgo.DefaultPvdSocketTransportCreate("127.0.0.1", 9876, 500)
// defer pvdTr.Release()
println("Pvd transport:", pvdTr)
// for {
// time.Sleep(1 / 60 * time.Second)
// }
}