MCPcopy
hub / github.com/EngoEngine/engo / Close

Method Close

common/render_filetype.go:216–220  ·  view source on GitHub ↗

Close removes the Texture data from the GPU.

()

Source from the content-addressed store, hash-verified

214
215// Close removes the Texture data from the GPU.
216func (t Texture) Close() {
217 if !engo.Headless() {
218 engo.Gl.DeleteTexture(t.id)
219 }
220}
221
222func init() {
223 imgLoader = &imageLoader{images: make(map[string]TextureResource)}

Callers

nothing calls this directly

Calls 1

HeadlessFunction · 0.92

Tested by

no test coverage detected