tile

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateRendererFunc

type CreateRendererFunc func() render.Renderer

type Tiler

type Tiler struct {
	// contains filtered or unexported fields
}

func NewTiler

func NewTiler(region spatial.Region, zoomLevels int, tilesPath string) Tiler

func (*Tiler) DownscaleTiles

func (t *Tiler) DownscaleTiles()

DownscaleTiles rescales high-resolution tiles into lower resolution ones until it reaches adequate zoom level

func (*Tiler) FullRender

func (t *Tiler) FullRender(game *game.Game, world *world.World, workers int, region spatial.TileRegion, createRenderer CreateRendererFunc)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL