Documentation ¶
Index ¶
- Constants
- func DestroyProbe(probeRef ProbeRef)
- func DrawObjects(objRef ObjectRef, count int, positions []DrawInfo, ...)
- func LoadObjectAsync(path string, callback ObjectLoaded, ref interface{})
- func LookupObjects(path string, lat, lon float32, enumerator LibraryEnumerator, ref interface{}) int
- func ProbeTerrainLatLonAlt(probeRef ProbeRef, lat, lon, alt float32) (ProbeResult, ProbeInfo)
- func ProbeTerrainXYZ(probeRef ProbeRef, x, y, z float32) (ProbeResult, ProbeInfo)
- func UnloadObject(objRef ObjectRef)
- type DrawInfo
- type LibraryEnumerator
- type ObjectLoaded
- type ObjectRef
- type ProbeInfo
- type ProbeRef
- type ProbeResult
- type ProbeType
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 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 NewDrawInfoLocal ¶
type LibraryEnumerator ¶
type LibraryEnumerator func(path string, ref interface{})
type ObjectLoaded ¶
type ObjectLoaded func(objRef ObjectRef, ref interface{})
type ObjectRef ¶
func LoadObject ¶
type ProbeRef ¶
func CreateProbe ¶
type ProbeResult ¶
type ProbeResult int
Click to show internal directories.
Click to hide internal directories.