aframe

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

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

Go to latest
Published: Oct 26, 2020 License: MIT Imports: 3 Imported by: 0

README

wasm-goAframe

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AComponent

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

type AEntity

type AEntity 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 Aframe

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

func NewScene

func NewScene() *Aframe

func (*Aframe) Aframe

func (a *Aframe) Aframe() js.Value

func (*Aframe) CacheEntity

func (a *Aframe) CacheEntity(e AEntity) error

func (*Aframe) GetCachedEntity

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

func (*Aframe) GetEntityFromSceneByID

func (a *Aframe) GetEntityFromSceneByID(_id string) (js.Value, error)

func (*Aframe) RegisterComponent

func (a *Aframe) RegisterComponent() error

func (*Aframe) SetPosition

func (a *Aframe) SetPosition(_id string, _x, _y, _z float64) error

Jump to

Keyboard shortcuts

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