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 ¶
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
Click to show internal directories.
Click to hide internal directories.