scenery

package
v0.0.0-...-3257b51 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2018 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ProbeY          ProbeType   = 0
	ProbeHitTerrain ProbeResult = 0
	ProbeError      ProbeResult = 1
	ProbeMissed     ProbeResult = 2
)

Variables

This section is empty.

Functions

func DestroyProbe

func DestroyProbe(probeRef ProbeRef)

func DrawObjects

func DrawObjects(objRef ObjectRef, count int, positions []DrawInfo, lighting, earthRelative bool)

func LoadObjectAsync

func LoadObjectAsync(path string, callback ObjectLoaded, ref interface{})

func LookupObjects

func LookupObjects(path string, lat, lon float32, enumerator LibraryEnumerator, ref interface{}) int

func ProbeTerrainLatLonAlt

func ProbeTerrainLatLonAlt(probeRef ProbeRef, lat, lon, alt float32) (ProbeResult, ProbeInfo)

func ProbeTerrainXYZ

func ProbeTerrainXYZ(probeRef ProbeRef, x, y, z float32) (ProbeResult, ProbeInfo)

func UnloadObject

func UnloadObject(objRef ObjectRef)

Types

type DrawInfo

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

func NewDrawInfo

func NewDrawInfo(lat, lon, alt, pitch, heading, roll float32) DrawInfo

func NewDrawInfoLocal

func NewDrawInfoLocal(x, y, z, pitch, heading, roll float32) DrawInfo

type LibraryEnumerator

type LibraryEnumerator func(path string, ref interface{})

type ObjectLoaded

type ObjectLoaded func(objRef ObjectRef, ref interface{})

type ObjectRef

type ObjectRef unsafe.Pointer

func LoadObject

func LoadObject(path string) ObjectRef

type ProbeInfo

type ProbeInfo struct {
	LocationX float32
	LocationY float32
	LocationZ float32
	NormalX   float32
	NormalY   float32
	NormalZ   float32
	VelocityX float32
	VelocityY float32

	Is_wet int32
	// contains filtered or unexported fields
}

type ProbeRef

type ProbeRef unsafe.Pointer

func CreateProbe

func CreateProbe(probeType ProbeType) ProbeRef

type ProbeResult

type ProbeResult int

type ProbeType

type ProbeType int

Jump to

Keyboard shortcuts

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