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