forked from Lngramos/three
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathgen_object3d_mesh.go
More file actions
40 lines (30 loc) · 837 Bytes
/
gen_object3d_mesh.go
File metadata and controls
40 lines (30 loc) · 837 Bytes
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
package three
// Code generated by go generate; DO NOT EDIT.
//
// using the following cmd:
// object3d_method_generator -typeName Mesh -typeSlug mesh
import "github.com/gopherjs/gopherjs/js"
func (obj *Mesh) ApplyMatrix(matrix *Matrix4) {
obj.Call("applyMatrix", matrix)
}
func (obj *Mesh) Add(m Object3D) {
obj.Object.Call("add", m)
}
func (obj *Mesh) Remove(m *js.Object) {
obj.Object.Call("remove", m)
}
func (obj *Mesh) GetObjectById(id int) *js.Object {
return obj.Call("getObjectById", id)
}
// func (obj *Mesh) Copy() *Mesh {
// return &Mesh{Object: obj.getInternalObject().Call("copy")}
// }
func (obj *Mesh) ToJSON() interface{} {
return obj.Object.Call("toJSON").Interface()
}
func (obj *Mesh) getInternalObject() *js.Object {
return obj.Object
}
func (obj *Mesh) UpdateMatrix() {
obj.Call("updateMatrix")
}