texture

package
v0.0.0-...-88a5242 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenerateTextureMapOpt

type GenerateTextureMapOpt func(m *TextureMap)

func TextureMapNorthToSouthOpt

func TextureMapNorthToSouthOpt(n2s bool) GenerateTextureMapOpt

type GenerateTextureOpt

type GenerateTextureOpt func(t *Texture)

type Texture

type Texture struct {
	Image image.Image
}

func GenerateTexture

func GenerateTexture(db osdata.ImageDatabase, centre osgrid.GridRef,
	width, height osgrid.Distance, opts ...GenerateTextureOpt) (Texture, error)

type TextureMap

type TextureMap struct {
	Surface      *geometry.Surface
	Texture      *Texture
	NorthToSouth bool
	TexCoords    [][][2]float64
}

func GenerateTextureMap

func GenerateTextureMap(t *Texture, s *geometry.Surface, opts ...GenerateTextureMapOpt) TextureMap

Jump to

Keyboard shortcuts

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