This commit is contained in:
IliaDenisov
2026-03-08 10:15:34 +02:00
parent 672e4a00b4
commit e37a67bc99
4 changed files with 1 additions and 47 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ This adapter enforces:
*/
var (
blankImage = image.NewRGBA(image.Rect(0, 0, 0, 0))
blankImage image.Image = image.NewRGBA(image.Rect(0, 0, 0, 0))
)
// FyneExecutor posts functions onto the Fyne UI thread.
-13
View File
@@ -1,18 +1,5 @@
package world
// renderCirclesStageA performs a full expanded-canvas redraw but renders ONLY Circle primitives.
// func (w *World) renderCirclesStageA(drawer PrimitiveDrawer, params RenderParams) error {
// plan, err := w.buildRenderPlanStageA(params)
// if err != nil {
// return err
// }
// allowWrap := params.Options == nil || !params.Options.DisableWrapScroll
// drawCirclesFromPlan(drawer, plan, w.W, w.H, allowWrap)
// return nil
// }
// drawCirclesFromPlan executes a circles-only draw from an already built render plan.
func drawCirclesFromPlan(drawer PrimitiveDrawer, plan RenderPlan, worldW, worldH int, allowWrap bool) {
for _, td := range plan.Tiles {
-14
View File
@@ -1,19 +1,5 @@
package world
// renderLinesStageB performs a full expanded-canvas redraw but renders ONLY Line primitives.
// It uses the Stage A render plan: tiles + per-tile clip + per-tile candidates.
// func (w *World) renderLinesStageB(drawer PrimitiveDrawer, params RenderParams) error {
// plan, err := w.buildRenderPlanStageA(params)
// if err != nil {
// return err
// }
// allowWrap := params.Options == nil || !params.Options.DisableWrapScroll
// drawLinesFromPlan(drawer, plan, w.W, w.H, allowWrap)
// return nil
// }
// lineSeg is one canonical segment (endpoints in [0..W) x [0..H)) to be drawn.
// It represents part of the torus-shortest polyline for a Line primitive after wrap splitting.
type lineSeg struct {
-19
View File
@@ -2,25 +2,6 @@ package world
import "math"
// renderPointsStageA performs a full expanded-canvas redraw but renders ONLY Point primitives.
// func (w *World) renderPointsStageA(drawer PrimitiveDrawer, params RenderParams) error {
// plan, err := w.buildRenderPlanStageA(params)
// if err != nil {
// return err
// }
// style := DefaultRenderStyle()
// if params.Options != nil && params.Options.Style != nil {
// style = *params.Options.Style
// }
// allowWrap := params.Options == nil || !params.Options.DisableWrapScroll
// applyPointStyle(drawer, style)
// drawPointsFromPlanWithRadius(drawer, plan, w.W, w.H, style.PointRadiusPx, allowWrap)
// return nil
// }
// drawPointsFromPlan keeps backward compatibility for older tests/helpers.
func drawPointsFromPlan(drawer PrimitiveDrawer, plan RenderPlan, allowWrap bool) {
// Default world sizes are unknown here, so this wrapper is no longer suitable for wrap-aware points.