Documentation ¶
Index ¶
- type MainApplication
- func (app *MainApplication) BitmapsStore() *graphics.BufferedTextureStore
- func (app *MainApplication) ControlFactory() controls.Factory
- func (app *MainApplication) ForComboBox() *controls.ComboBoxBuilder
- func (app *MainApplication) ForGraphics() graphics.Context
- func (app *MainApplication) ForImageDisplay() *controls.ImageDisplayBuilder
- func (app *MainApplication) ForLabel() *controls.LabelBuilder
- func (app *MainApplication) ForSlider() *controls.SliderBuilder
- func (app *MainApplication) ForTextButton() *controls.TextButtonBuilder
- func (app *MainApplication) ForTextureSelector() *controls.TextureSelectorBuilder
- func (app *MainApplication) GameObjectBitmapsStore() *graphics.BufferedTextureStore
- func (app *MainApplication) GameObjectIconsStore() *graphics.BufferedTextureStore
- func (app *MainApplication) Init(glWindow env.OpenGlWindow)
- func (app *MainApplication) ModelAdapter() *model.Adapter
- func (app *MainApplication) NewPaletteTexture(colorProvider graphics.ColorProvider) *graphics.PaletteTexture
- func (app *MainApplication) NewRenderContext(viewMatrix *mgl.Mat4) *graphics.RenderContext
- func (app *MainApplication) RectangleRenderer() *graphics.RectangleRenderer
- func (app *MainApplication) Scale() float32
- func (app *MainApplication) TextPainter() graphics.TextPainter
- func (app *MainApplication) Texturize(bmp *graphics.Bitmap) *graphics.BitmapTexture
- func (app *MainApplication) UITextRenderer() *graphics.BitmapTextureRenderer
- func (app *MainApplication) WorldTextureStore(size dataModel.TextureSize) *graphics.BufferedTextureStore
- type Mode
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.