automated snapshot

This commit is contained in:
sumi
2025-12-18 16:16:23 -06:00
parent f3d0570f3f
commit b89137415c
3 changed files with 51 additions and 38 deletions

View File

@@ -4,7 +4,19 @@ import (
"github.com/gen2brain/raylib-go/raylib"
)
type Sketch interface {
type Sketch struct {
layers []Layer
}
func (s *Sketch) Draw(ctx *RenderCtx) {
for _, layer := range s.layers {
layer.Draw(ctx)
}
}
type Layer interface {
Draw(ctx *RenderCtx)
}