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:
21
main.go
21
main.go
@ -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)
|
||||
// }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user