cleanup
This commit is contained in:
+1
-1
@@ -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.
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user