editor

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2018 License: BSD-3-Clause, BSD-3-Clause Imports: 16 Imported by: 0

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, invertedSliderScroll bool) *MainApplication

NewMainApplication returns a new instance of MainApplication.

func (*MainApplication) BitmapsStore added in v0.8.0

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

BitmapsStore implements the graphics.Context interface.

func (*MainApplication) ControlFactory added in v0.4.0

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

ControlFactory implements the Context interface.

func (*MainApplication) ForComboBox added in v0.4.0

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

ForComboBox implements the controls.Factory interface.

func (*MainApplication) ForGraphics added in v0.4.0

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

ForGraphics implements the Context interface.

func (*MainApplication) ForImageDisplay added in v0.7.0

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

ForImageDisplay implements the controls.Factory interface.

func (*MainApplication) ForLabel added in v0.4.0

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

ForLabel implements the controls.Factory interface.

func (*MainApplication) ForSlider added in v0.5.0

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

ForSlider implements the controls.Factory interface.

func (*MainApplication) ForTextButton added in v0.4.0

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

ForTextButton implements the controls.Factory interface.

func (*MainApplication) ForTextureSelector added in v0.4.0

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

ForTextureSelector implements the controls.Factory interface.

func (*MainApplication) GameObjectBitmapsStore added in v0.10.3

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

GameObjectBitmapsStore implements the graphics.Context interface.

func (*MainApplication) GameObjectIconsStore added in v0.4.0

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 added in v0.4.0

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

ModelAdapter implements the Context interface.

func (*MainApplication) NewPaletteTexture added in v0.4.0

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

NewPaletteTexture implements the graphics.Context interface.

func (*MainApplication) NewRenderContext added in v0.4.0

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

NewRenderContext implements the Context interface.

func (*MainApplication) Perform added in v1.3.0

func (app *MainApplication) Perform(command cmd.Command)

Perform tries to execute the given command and puts it on the command stack.

func (*MainApplication) RectangleRenderer added in v0.4.0

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

RectangleRenderer implements the graphics.Context interface.

func (*MainApplication) Scale added in v1.2.0

func (app *MainApplication) Scale() float32

Scale implements the controls.Factory interface.

func (*MainApplication) TextPainter added in v0.4.0

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

TextPainter implements the graphics.Context interface.

func (*MainApplication) Texturize added in v0.4.0

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

Texturize implements the graphics.Context interface.

func (*MainApplication) UITextRenderer added in v0.4.0

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

UITextRenderer implements the graphics.Context interface.

func (*MainApplication) WorldTextureStore added in v0.4.0

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

WorldTextureStore implements the graphics.Context interface.

type Mode added in v0.4.0

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