wasmGoAframe

package module
v0.0.0-...-a927304 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2020 License: MIT Imports: 2 Imported by: 0

README

wasmGoAframe

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	THREE_BackSide          js.Value
	THREE_BoxGeometry       js.Value
	THREE_TextureLoader     js.Value
	THREE_Mesh              js.Value
	THREE_MeshBasicMaterial js.Value
)

Functions

func CacheEntity

func CacheEntity(e *AEntity) error

func GetElementFromSceneById

func GetElementFromSceneById(_id string) (js.Value, error)

Types

type AComponent

type AComponent struct {
	Component
}

type AEntity

type AEntity struct {
	Entity
}

func GetCachedEntity

func GetCachedEntity(_id string) (*AEntity, error)

func (*AEntity) SetPosition

func (e *AEntity) SetPosition(_x, _y, _z float64) error

type Aframe

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

type Component

type Component interface {
	Attributes() (map[string]interface{}, error)
}

type Entity

type Entity interface {
	SetAttribute(string, map[string]interface{})
	GetProperty(...string) (js.Value, error)
	GetAttribute(string) (js.Value, error)
	ID() string
	Tag() string
	Value() js.Value
	String() string
}

type Skybox

type Skybox struct {
	Name string

	Images map[string]string

	Length float32
	Height float32
	Depth  float32
	// contains filtered or unexported fields
}

func (*Skybox) SetAsSceneSkybox

func (s *Skybox) SetAsSceneSkybox() error

Jump to

Keyboard shortcuts

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