editor

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2018 License: BSD-3-Clause Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MainApplication

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

MainApplication represents the core intelligence of the editor.

func NewMainApplication

func NewMainApplication(store dataModel.DataStore, scale float32) *MainApplication

NewMainApplication returns a new instance of MainApplication.

func (*MainApplication) BitmapsStore

func (app *MainApplication) BitmapsStore() *graphics.BufferedTextureStore

BitmapsStore implements the graphics.Context interface.

func (*MainApplication) ControlFactory

func (app *MainApplication) ControlFactory() controls.Factory

ControlFactory implements the Context interface.

func (*MainApplication) ForComboBox

func (app *MainApplication) ForComboBox() *controls.ComboBoxBuilder

ForComboBox implements the controls.Factory interface.

func (*MainApplication) ForGraphics

func (app *MainApplication) ForGraphics() graphics.Context

ForGraphics implements the Context interface.

func (*MainApplication) ForImageDisplay

func (app *MainApplication) ForImageDisplay() *controls.ImageDisplayBuilder

ForImageDisplay implements the controls.Factory interface.

func (*MainApplication) ForLabel

func (app *MainApplication) ForLabel() *controls.LabelBuilder

ForLabel implements the controls.Factory interface.

func (*MainApplication) ForSlider

func (app *MainApplication) ForSlider() *controls.SliderBuilder

ForSlider implements the controls.Factory interface.

func (*MainApplication) ForTextButton

func (app *MainApplication) ForTextButton() *controls.TextButtonBuilder

ForTextButton implements the controls.Factory interface.

func (*MainApplication) ForTextureSelector

func (app *MainApplication) ForTextureSelector() *controls.TextureSelectorBuilder

ForTextureSelector implements the controls.Factory interface.

func (*MainApplication) GameObjectBitmapsStore

func (app *MainApplication) GameObjectBitmapsStore() *graphics.BufferedTextureStore

GameObjectBitmapsStore implements the graphics.Context interface.

func (*MainApplication) GameObjectIconsStore

func (app *MainApplication) GameObjectIconsStore() *graphics.BufferedTextureStore

GameObjectIconsStore implements the graphics.Context interface.

func (*MainApplication) Init

func (app *MainApplication) Init(glWindow env.OpenGlWindow)

Init implements the env.Application interface.

func (*MainApplication) ModelAdapter

func (app *MainApplication) ModelAdapter() *model.Adapter

ModelAdapter implements the Context interface.

func (*MainApplication) NewPaletteTexture

func (app *MainApplication) NewPaletteTexture(colorProvider graphics.ColorProvider) *graphics.PaletteTexture

NewPaletteTexture implements the graphics.Context interface.

func (*MainApplication) NewRenderContext

func (app *MainApplication) NewRenderContext(viewMatrix *mgl.Mat4) *graphics.RenderContext

NewRenderContext implements the Context interface.

func (*MainApplication) RectangleRenderer

func (app *MainApplication) RectangleRenderer() *graphics.RectangleRenderer

RectangleRenderer implements the graphics.Context interface.

func (*MainApplication) Scale

func (app *MainApplication) Scale() float32

Scale implements the controls.Factory interface.

func (*MainApplication) TextPainter

func (app *MainApplication) TextPainter() graphics.TextPainter

TextPainter implements the graphics.Context interface.

func (*MainApplication) Texturize

func (app *MainApplication) Texturize(bmp *graphics.Bitmap) *graphics.BitmapTexture

Texturize implements the graphics.Context interface.

func (*MainApplication) UITextRenderer

func (app *MainApplication) UITextRenderer() *graphics.BitmapTextureRenderer

UITextRenderer implements the graphics.Context interface.

func (*MainApplication) WorldTextureStore

func (app *MainApplication) WorldTextureStore(size dataModel.TextureSize) *graphics.BufferedTextureStore

WorldTextureStore implements the graphics.Context interface.

type Mode

type Mode interface {
	// SetActive determines whether a mode is currently active.
	// Inactive modes should hide their UI and release any focus.
	SetActive(active bool)
}

Mode is the general interface for an editor mode.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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