web

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: May 21, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Rendered for js/wasm

Overview

Package web provides implementation of web frontend.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Frontend

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

func NewFrontend

func NewFrontend() *Frontend

func (*Frontend) CommencePanic

func (f *Frontend) CommencePanic(reason, msg string)

func (*Frontend) Execute added in v0.2.1

func (f *Frontend) Execute(item dispatch.WorkItem)

func (*Frontend) GetApp

func (f *Frontend) GetApp() *frontend.App

func (*Frontend) GetContext

func (f *Frontend) GetContext() frontend.Context

func (*Frontend) GetLaunchArgs added in v0.1.7

func (f *Frontend) GetLaunchArgs() a.SiMap

func (*Frontend) GetMessageDispatcher added in v0.2.1

func (f *Frontend) GetMessageDispatcher() dispatch.MessageDispatcher

func (*Frontend) GetPlatform

func (f *Frontend) GetPlatform() common.Platform

func (*Frontend) GetRenderer

func (f *Frontend) GetRenderer() *rendering.ARenderer

func (*Frontend) GetResourceManager

func (f *Frontend) GetResourceManager() frontend.ResourceManager

func (*Frontend) GetWorkDispatcher added in v0.2.1

func (f *Frontend) GetWorkDispatcher() dispatch.WorkDispatcher

func (*Frontend) Init

func (f *Frontend) Init()

func (*Frontend) Run

func (f *Frontend) Run()

func (*Frontend) SendMessage added in v0.2.1

func (f *Frontend) SendMessage(message *dispatch.Message)

func (*Frontend) SetEngineDispatcher added in v0.2.1

func (f *Frontend) SetEngineDispatcher(disp dispatch.MessageDispatcher)

type P5PrimitiveRendererDelegate added in v0.2.0

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

func (*P5PrimitiveRendererDelegate) OnRemovePrimitive added in v0.2.0

func (*P5PrimitiveRendererDelegate) OnRender added in v0.2.0

func (*P5PrimitiveRendererDelegate) OnSetPrimitive added in v0.2.0

func (*P5PrimitiveRendererDelegate) OnStart added in v0.2.0

func (r *P5PrimitiveRendererDelegate) OnStart()

func (*P5PrimitiveRendererDelegate) OnStop added in v0.2.0

func (r *P5PrimitiveRendererDelegate) OnStop()

type P5RendererDelegate added in v0.2.0

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

func (*P5RendererDelegate) OnClear added in v0.2.0

func (r *P5RendererDelegate) OnClear()

func (*P5RendererDelegate) OnPerformRenderingEnd added in v0.2.0

func (r *P5RendererDelegate) OnPerformRenderingEnd()

func (*P5RendererDelegate) OnPerformRenderingStart added in v0.2.0

func (r *P5RendererDelegate) OnPerformRenderingStart()

func (*P5RendererDelegate) OnPrepare added in v0.2.0

func (r *P5RendererDelegate) OnPrepare()

func (*P5RendererDelegate) OnStop added in v0.2.0

func (r *P5RendererDelegate) OnStop()

type ResourceManager

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

func (*ResourceManager) FullPathOf added in v0.1.1

func (r *ResourceManager) FullPathOf(id a.ResId) string

func (*ResourceManager) IdOf

func (r *ResourceManager) IdOf(path string) a.ResId

func (*ResourceManager) PathOf

func (r *ResourceManager) PathOf(id a.ResId) string

func (*ResourceManager) ReadFile

func (r *ResourceManager) ReadFile(id a.ResId) ([]byte, error)

func (*ResourceManager) RegisterResource

func (r *ResourceManager) RegisterResource(path string)

Jump to

Keyboard shortcuts

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