-
Notifications
You must be signed in to change notification settings - Fork 0
/
VRLayerInit.cljs
88 lines (63 loc) · 2.6 KB
/
VRLayerInit.cljs
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
(ns web.vr.VRLayerInit
"The VRLayerInit interface (dictionary) of the WebVR API represents
content layer (an `web.canvas.HTMLCanvasElement` or `web.canvas.OffscreenCanvas`)
you want to present in a VR display."
(:refer-clojure :exclude []))
(defn left-bounds
"Property.
The leftBounds property of the `web.vr.VRLayerInit` interface
defines the left texture bounds of the canvas whose contents
be presented by the `web.media.VRDisplay`.
`var myVRLayerInit = { };
myVRLayerInit.leftBounds = [0.0, 0.0, 0.5, 1.0];`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRLayerInit/leftBounds`"
[this]
(-> this (.-leftBounds)))
(defn set-left-bounds!
"Property.
The leftBounds property of the `web.vr.VRLayerInit` interface
defines the left texture bounds of the canvas whose contents
be presented by the `web.media.VRDisplay`.
`var myVRLayerInit = { };
myVRLayerInit.leftBounds = [0.0, 0.0, 0.5, 1.0];`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRLayerInit/leftBounds`"
[this val]
(aset this "leftBounds" val))
(defn right-bounds
"Property.
The rightBounds property of the `web.vr.VRLayerInit` interface
defines the right texture bounds of the canvas whose contents
be presented by the `web.media.VRDisplay`.
`var myVRLayerInit = { };
myVRLayerInit.rightBounds = [0.5, 0.0, 0.5, 1.0];`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRLayerInit/rightBounds`"
[this]
(-> this (.-rightBounds)))
(defn set-right-bounds!
"Property.
The rightBounds property of the `web.vr.VRLayerInit` interface
defines the right texture bounds of the canvas whose contents
be presented by the `web.media.VRDisplay`.
`var myVRLayerInit = { };
myVRLayerInit.rightBounds = [0.5, 0.0, 0.5, 1.0];`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRLayerInit/rightBounds`"
[this val]
(aset this "rightBounds" val))
(defn source
"Property.
The source property of the `web.vr.VRLayerInit` interface (dictionary)
the canvas whose contents will be presented by the `web.media.VRDisplay`.
`var myVRLayerInit = { };
myVRLayerInit.source = myCanvas;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRLayerInit/source`"
[this]
(-> this (.-source)))
(defn set-source!
"Property.
The source property of the `web.vr.VRLayerInit` interface (dictionary)
the canvas whose contents will be presented by the `web.media.VRDisplay`.
`var myVRLayerInit = { };
myVRLayerInit.source = myCanvas;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRLayerInit/source`"
[this val]
(aset this "source" val))