MCPcopy
hub / github.com/g3n/engine / Init

Method Init

geometry/geometry.go:71–81  ·  view source on GitHub ↗

Init initializes the geometry.

()

Source from the content-addressed store, hash-verified

69
70// Init initializes the geometry.
71func (g *Geometry) Init() {
72
73 g.refcount = 1
74 g.vbos = make([]*gls.VBO, 0)
75 g.groups = make([]Group, 0)
76 g.gs = nil
77 g.handleVAO = 0
78 g.handleIndices = 0
79 g.updateIndices = true
80 g.ShaderDefines = *gls.NewShaderDefines()
81}
82
83// GetGeometry satisfies the IGeometry interface.
84func (g *Geometry) GetGeometry() *Geometry {

Callers 3

DisposeMethod · 0.95
NewMorphGeometryFunction · 0.45
NewGeometryFunction · 0.45

Calls 1

NewShaderDefinesFunction · 0.92

Tested by

no test coverage detected