Add DrawLineBezier, update C sources
This commit is contained in:
parent
4b0156cccf
commit
3b28d17b95
10 changed files with 217 additions and 605 deletions
|
@ -182,27 +182,20 @@ func EndBlendMode() {
|
|||
C.EndBlendMode()
|
||||
}
|
||||
|
||||
// InitVrDevice - Init VR device
|
||||
func InitVrDevice(vdDevice VrDevice) {
|
||||
// InitVrSimulator - Init VR simulator for selected device
|
||||
func InitVrSimulator(vdDevice VrDevice) {
|
||||
cvdDevice := (C.int)(vdDevice)
|
||||
C.InitVrDevice(cvdDevice)
|
||||
C.InitVrSimulator(cvdDevice)
|
||||
}
|
||||
|
||||
// CloseVrDevice - Close VR device
|
||||
func CloseVrDevice() {
|
||||
C.CloseVrDevice()
|
||||
// CloseVrSimulator - Close VR simulator for current device
|
||||
func CloseVrSimulator() {
|
||||
C.CloseVrSimulator()
|
||||
}
|
||||
|
||||
// IsVrDeviceReady - Detect if VR device is ready
|
||||
func IsVrDeviceReady() bool {
|
||||
ret := C.IsVrDeviceReady()
|
||||
v := bool(int(ret) == 1)
|
||||
return v
|
||||
}
|
||||
|
||||
// IsVrSimulator - Detect if VR simulator is running
|
||||
func IsVrSimulator() bool {
|
||||
ret := C.IsVrSimulator()
|
||||
// IsVrSimulatorReady - Detect if VR simulator is ready
|
||||
func IsVrSimulatorReady() bool {
|
||||
ret := C.IsVrSimulatorReady()
|
||||
v := bool(int(ret) == 1)
|
||||
return v
|
||||
}
|
||||
|
@ -217,3 +210,13 @@ func UpdateVrTracking(camera *Camera) {
|
|||
func ToggleVrMode() {
|
||||
C.ToggleVrMode()
|
||||
}
|
||||
|
||||
// BeginVrDrawing - Begin VR simulator stereo rendering
|
||||
func BeginVrDrawing() {
|
||||
C.BeginVrDrawing()
|
||||
}
|
||||
|
||||
// EndVrDrawing - End VR simulator stereo rendering
|
||||
func EndVrDrawing() {
|
||||
C.EndVrDrawing()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue