This repository has been archived by the owner on Feb 22, 2020. It is now read-only.
/
zzz_CubeMapInfo.go
197 lines (170 loc) · 5.31 KB
/
zzz_CubeMapInfo.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
// Code generated by docs2go. DO NOT EDIT.
package babylon
import (
"syscall/js"
)
// CubeMapInfo represents a babylon.js CubeMapInfo.
// CubeMap information grouping all the data for each faces as well as the cubemap size.
type CubeMapInfo struct {
p js.Value
ctx js.Value
}
// JSObject returns the underlying js.Value.
func (c *CubeMapInfo) JSObject() js.Value { return c.p }
// CubeMapInfo returns a CubeMapInfo JavaScript class.
func (ba *Babylon) CubeMapInfo() *CubeMapInfo {
p := ba.ctx.Get("CubeMapInfo")
return CubeMapInfoFromJSObject(p, ba.ctx)
}
// CubeMapInfoFromJSObject returns a wrapped CubeMapInfo JavaScript class.
func CubeMapInfoFromJSObject(p js.Value, ctx js.Value) *CubeMapInfo {
return &CubeMapInfo{p: p, ctx: ctx}
}
// CubeMapInfoArrayToJSArray returns a JavaScript Array for the wrapped array.
func CubeMapInfoArrayToJSArray(array []*CubeMapInfo) []interface{} {
var result []interface{}
for _, v := range array {
result = append(result, v.JSObject())
}
return result
}
// Back returns the Back property of class CubeMapInfo.
//
// https://doc.babylonjs.com/api/classes/babylon.cubemapinfo#back
func (c *CubeMapInfo) Back() js.Value {
retVal := c.p.Get("back")
return retVal
}
// SetBack sets the Back property of class CubeMapInfo.
//
// https://doc.babylonjs.com/api/classes/babylon.cubemapinfo#back
func (c *CubeMapInfo) SetBack(back js.Value) *CubeMapInfo {
c.p.Set("back", back)
return c
}
// Down returns the Down property of class CubeMapInfo.
//
// https://doc.babylonjs.com/api/classes/babylon.cubemapinfo#down
func (c *CubeMapInfo) Down() js.Value {
retVal := c.p.Get("down")
return retVal
}
// SetDown sets the Down property of class CubeMapInfo.
//
// https://doc.babylonjs.com/api/classes/babylon.cubemapinfo#down
func (c *CubeMapInfo) SetDown(down js.Value) *CubeMapInfo {
c.p.Set("down", down)
return c
}
// Format returns the Format property of class CubeMapInfo.
//
// https://doc.babylonjs.com/api/classes/babylon.cubemapinfo#format
func (c *CubeMapInfo) Format() float64 {
retVal := c.p.Get("format")
return retVal.Float()
}
// SetFormat sets the Format property of class CubeMapInfo.
//
// https://doc.babylonjs.com/api/classes/babylon.cubemapinfo#format
func (c *CubeMapInfo) SetFormat(format float64) *CubeMapInfo {
c.p.Set("format", format)
return c
}
// Front returns the Front property of class CubeMapInfo.
//
// https://doc.babylonjs.com/api/classes/babylon.cubemapinfo#front
func (c *CubeMapInfo) Front() js.Value {
retVal := c.p.Get("front")
return retVal
}
// SetFront sets the Front property of class CubeMapInfo.
//
// https://doc.babylonjs.com/api/classes/babylon.cubemapinfo#front
func (c *CubeMapInfo) SetFront(front js.Value) *CubeMapInfo {
c.p.Set("front", front)
return c
}
// GammaSpace returns the GammaSpace property of class CubeMapInfo.
//
// https://doc.babylonjs.com/api/classes/babylon.cubemapinfo#gammaspace
func (c *CubeMapInfo) GammaSpace() bool {
retVal := c.p.Get("gammaSpace")
return retVal.Bool()
}
// SetGammaSpace sets the GammaSpace property of class CubeMapInfo.
//
// https://doc.babylonjs.com/api/classes/babylon.cubemapinfo#gammaspace
func (c *CubeMapInfo) SetGammaSpace(gammaSpace bool) *CubeMapInfo {
c.p.Set("gammaSpace", gammaSpace)
return c
}
// Left returns the Left property of class CubeMapInfo.
//
// https://doc.babylonjs.com/api/classes/babylon.cubemapinfo#left
func (c *CubeMapInfo) Left() js.Value {
retVal := c.p.Get("left")
return retVal
}
// SetLeft sets the Left property of class CubeMapInfo.
//
// https://doc.babylonjs.com/api/classes/babylon.cubemapinfo#left
func (c *CubeMapInfo) SetLeft(left js.Value) *CubeMapInfo {
c.p.Set("left", left)
return c
}
// Right returns the Right property of class CubeMapInfo.
//
// https://doc.babylonjs.com/api/classes/babylon.cubemapinfo#right
func (c *CubeMapInfo) Right() js.Value {
retVal := c.p.Get("right")
return retVal
}
// SetRight sets the Right property of class CubeMapInfo.
//
// https://doc.babylonjs.com/api/classes/babylon.cubemapinfo#right
func (c *CubeMapInfo) SetRight(right js.Value) *CubeMapInfo {
c.p.Set("right", right)
return c
}
// Size returns the Size property of class CubeMapInfo.
//
// https://doc.babylonjs.com/api/classes/babylon.cubemapinfo#size
func (c *CubeMapInfo) Size() float64 {
retVal := c.p.Get("size")
return retVal.Float()
}
// SetSize sets the Size property of class CubeMapInfo.
//
// https://doc.babylonjs.com/api/classes/babylon.cubemapinfo#size
func (c *CubeMapInfo) SetSize(size float64) *CubeMapInfo {
c.p.Set("size", size)
return c
}
// Type returns the Type property of class CubeMapInfo.
//
// https://doc.babylonjs.com/api/classes/babylon.cubemapinfo#type
func (c *CubeMapInfo) Type() float64 {
retVal := c.p.Get("type")
return retVal.Float()
}
// SetType sets the Type property of class CubeMapInfo.
//
// https://doc.babylonjs.com/api/classes/babylon.cubemapinfo#type
func (c *CubeMapInfo) SetType(jsType float64) *CubeMapInfo {
c.p.Set("type", jsType)
return c
}
// Up returns the Up property of class CubeMapInfo.
//
// https://doc.babylonjs.com/api/classes/babylon.cubemapinfo#up
func (c *CubeMapInfo) Up() js.Value {
retVal := c.p.Get("up")
return retVal
}
// SetUp sets the Up property of class CubeMapInfo.
//
// https://doc.babylonjs.com/api/classes/babylon.cubemapinfo#up
func (c *CubeMapInfo) SetUp(up js.Value) *CubeMapInfo {
c.p.Set("up", up)
return c
}