MCPcopy Create free account
hub / github.com/cogentcore/core / newScrim

Function newScrim

core/renderwindow.go:927–931  ·  view source on GitHub ↗

newScrim creates a new [scrim] for use in rendering. It does not actually add the Scrim to the Scene, just sets its pointers.

(sc *Scene)

Source from the content-addressed store, hash-verified

925// It does not actually add the Scrim to the Scene,
926// just sets its pointers.
927func newScrim(sc *Scene) *scrim {
928 sr := tree.New[scrim]() // critical to not add to scene!
929 tree.SetParent(sr, sc)
930 return sr
931}
932
933func (sr *scrim) DirectRenderImage(drw system.Drawer, idx int) {
934 // no-op

Callers 1

gatherScenesMethod · 0.85

Calls 1

SetParentFunction · 0.92

Tested by

no test coverage detected