Init initializes the geometry.
()
| 69 | |
| 70 | // Init initializes the geometry. |
| 71 | func (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. |
| 84 | func (g *Geometry) GetGeometry() *Geometry { |
no test coverage detected