This repository has been archived by the owner on Feb 22, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
zzz_StereoscopicUniversalCamera.go
65 lines (52 loc) · 2.37 KB
/
zzz_StereoscopicUniversalCamera.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// Code generated by docs2go. DO NOT EDIT.
package babylon
import (
"syscall/js"
)
// StereoscopicUniversalCamera represents a babylon.js StereoscopicUniversalCamera.
// Camera used to simulate stereoscopic rendering (based on UniversalCamera)
//
// See: http://doc.babylonjs.com/features/cameras
type StereoscopicUniversalCamera struct {
*UniversalCamera
ctx js.Value
}
// JSObject returns the underlying js.Value.
func (s *StereoscopicUniversalCamera) JSObject() js.Value { return s.p }
// StereoscopicUniversalCamera returns a StereoscopicUniversalCamera JavaScript class.
func (ba *Babylon) StereoscopicUniversalCamera() *StereoscopicUniversalCamera {
p := ba.ctx.Get("StereoscopicUniversalCamera")
return StereoscopicUniversalCameraFromJSObject(p, ba.ctx)
}
// StereoscopicUniversalCameraFromJSObject returns a wrapped StereoscopicUniversalCamera JavaScript class.
func StereoscopicUniversalCameraFromJSObject(p js.Value, ctx js.Value) *StereoscopicUniversalCamera {
return &StereoscopicUniversalCamera{UniversalCamera: UniversalCameraFromJSObject(p, ctx), ctx: ctx}
}
// StereoscopicUniversalCameraArrayToJSArray returns a JavaScript Array for the wrapped array.
func StereoscopicUniversalCameraArrayToJSArray(array []*StereoscopicUniversalCamera) []interface{} {
var result []interface{}
for _, v := range array {
result = append(result, v.JSObject())
}
return result
}
// NewStereoscopicUniversalCamera returns a new StereoscopicUniversalCamera object.
//
// https://doc.babylonjs.com/api/classes/babylon.stereoscopicuniversalcamera#constructor
func (ba *Babylon) NewStereoscopicUniversalCamera(name string, position *Vector3, interaxialDistance float64, isStereoscopicSideBySide bool, scene *Scene) *StereoscopicUniversalCamera {
args := make([]interface{}, 0, 5+0)
args = append(args, name)
args = append(args, position.JSObject())
args = append(args, interaxialDistance)
args = append(args, isStereoscopicSideBySide)
args = append(args, scene.JSObject())
p := ba.ctx.Get("StereoscopicUniversalCamera").New(args...)
return StereoscopicUniversalCameraFromJSObject(p, ba.ctx)
}
// GetClassName calls the GetClassName method on the StereoscopicUniversalCamera object.
//
// https://doc.babylonjs.com/api/classes/babylon.stereoscopicuniversalcamera#getclassname
func (s *StereoscopicUniversalCamera) GetClassName() string {
retVal := s.p.Call("getClassName")
return retVal.String()
}