MCPcopy Create free account
hub / github.com/SolarLune/masterplan / StopTracking

Method StopTracking

rendertexture.go:36–46  ·  view source on GitHub ↗

StopTracking removes the RenderTexture from the global renderTextures slice, which means that it won't be refreshed when a windowing event requires it (which is specifically applicable on Windows).

()

Source from the content-addressed store, hash-verified

34// StopTracking removes the RenderTexture from the global renderTextures slice, which means that it won't be refreshed when a windowing event requires it (which
35// is specifically applicable on Windows).
36func (rt *RenderTexture) StopTracking() {
37
38 for i, slot := range renderTextures {
39 if rt == slot {
40 renderTextures[i] = nil
41 renderTextures = append(renderTextures[:i], renderTextures[i+1:]...)
42 break
43 }
44 }
45
46}
47
48func (rt *RenderTexture) Recreate(newW, newH int32) {
49

Callers 2

DestroyMethod · 0.80
DestroyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected