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)
| 925 | // It does not actually add the Scrim to the Scene, |
| 926 | // just sets its pointers. |
| 927 | func 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 | |
| 933 | func (sr *scrim) DirectRenderImage(drw system.Drawer, idx int) { |
| 934 | // no-op |
no test coverage detected