This repository has been archived by the owner on Feb 22, 2020. It is now read-only.
/
zzz_IPipelineContext.go
69 lines (58 loc) · 2.05 KB
/
zzz_IPipelineContext.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
// Code generated by docs2go. DO NOT EDIT.
package babylon
import (
"syscall/js"
)
// IPipelineContext represents a babylon.js IPipelineContext.
// Class used to store and describe the pipeline context associated with an effect
type IPipelineContext struct {
p js.Value
ctx js.Value
}
// JSObject returns the underlying js.Value.
func (i *IPipelineContext) JSObject() js.Value { return i.p }
// IPipelineContext returns a IPipelineContext JavaScript class.
func (ba *Babylon) IPipelineContext() *IPipelineContext {
p := ba.ctx.Get("IPipelineContext")
return IPipelineContextFromJSObject(p, ba.ctx)
}
// IPipelineContextFromJSObject returns a wrapped IPipelineContext JavaScript class.
func IPipelineContextFromJSObject(p js.Value, ctx js.Value) *IPipelineContext {
return &IPipelineContext{p: p, ctx: ctx}
}
// IPipelineContextArrayToJSArray returns a JavaScript Array for the wrapped array.
func IPipelineContextArrayToJSArray(array []*IPipelineContext) []interface{} {
var result []interface{}
for _, v := range array {
result = append(result, v.JSObject())
}
return result
}
// IsAsync returns the IsAsync property of class IPipelineContext.
//
// https://doc.babylonjs.com/api/classes/babylon.ipipelinecontext#isasync
func (i *IPipelineContext) IsAsync() bool {
retVal := i.p.Get("isAsync")
return retVal.Bool()
}
// SetIsAsync sets the IsAsync property of class IPipelineContext.
//
// https://doc.babylonjs.com/api/classes/babylon.ipipelinecontext#isasync
func (i *IPipelineContext) SetIsAsync(isAsync bool) *IPipelineContext {
i.p.Set("isAsync", isAsync)
return i
}
// IsReady returns the IsReady property of class IPipelineContext.
//
// https://doc.babylonjs.com/api/classes/babylon.ipipelinecontext#isready
func (i *IPipelineContext) IsReady() bool {
retVal := i.p.Get("isReady")
return retVal.Bool()
}
// SetIsReady sets the IsReady property of class IPipelineContext.
//
// https://doc.babylonjs.com/api/classes/babylon.ipipelinecontext#isready
func (i *IPipelineContext) SetIsReady(isReady bool) *IPipelineContext {
i.p.Set("isReady", isReady)
return i
}