v0.0.0-...-8a2580e Latest Latest

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

Go to latest
Published: Oct 7, 2018 License: MIT Imports: 25 Imported by: 0




This section is empty.


This section is empty.


func FormatFloat32

func FormatFloat32(input float32) string

func FormatFloat64

func FormatFloat64(input float64) string

func ParseFloat32

func ParseFloat32(input string, def float32) float32


type App

type App struct {
	*application.Application // Embedded standard application object
	// contains filtered or unexported fields

func Create

func Create() *App

func (*App) AddFinalizer

func (app *App) AddFinalizer(f func())

AddFinalizer adds a function which will be executed before another screen is started

func (*App) AmbLight

func (app *App) AmbLight() *light.Ambient

AmbLight returns the default scene ambient light

func (*App) ControlFolder

func (app *App) ControlFolder() *gui.ControlFolder

ControlFolder returns the application control folder

func (*App) GuiPanel

func (app *App) GuiPanel() *gui.Panel

GuiPanel returns the current gui panel for demos to add elements to.

func (*App) RunFinalizers

func (app *App) RunFinalizers()

type CameraSettings

type CameraSettings struct {
	// contains filtered or unexported fields

func (*CameraSettings) Initialize

func (s *CameraSettings) Initialize(a *App)

func (*CameraSettings) Render

func (s *CameraSettings) Render(a *App)

type ErrorDialog

type ErrorDialog struct {
	// contains filtered or unexported fields

func NewErrorDialog

func NewErrorDialog(width, height float32) *ErrorDialog

func (*ErrorDialog) Show

func (e *ErrorDialog) Show(msg string)

type FileSelect

type FileSelect struct {
	// contains filtered or unexported fields

func NewFileSelect

func NewFileSelect(width, height float32, relativeStartingPath string) (*FileSelect, error)

func (*FileSelect) Selected

func (fs *FileSelect) Selected() (string, error)

func (*FileSelect) SetFilename

func (fs *FileSelect) SetFilename(name string)

func (*FileSelect) SetPath

func (fs *FileSelect) SetPath(path string) error

func (*FileSelect) SetTitle

func (fs *FileSelect) SetTitle(title string)

func (*FileSelect) Show

func (fs *FileSelect) Show(show bool)

Show shows or hide the file selection dialog

type IScreen

type IScreen interface {
	Initialize(*App) // Called once to initialize the demo
	Render(*App)     // Called at each frame for animations

type SceneUI

type SceneUI struct {
	// contains filtered or unexported fields

func (*SceneUI) CenterCamera

func (s *SceneUI) CenterCamera()

func (*SceneUI) CurrentFixture

func (s *SceneUI) CurrentFixture() *fixture.Fixture

func (*SceneUI) Draw

func (s *SceneUI) Draw()

func (*SceneUI) DrawBounds

func (s *SceneUI) DrawBounds()

func (*SceneUI) DrawFixtures

func (s *SceneUI) DrawFixtures()

func (*SceneUI) Initialize

func (s *SceneUI) Initialize(app *App)

func (*SceneUI) Log

func (s *SceneUI) Log() *logger.Logger

func (*SceneUI) NewRainbowMaterial

func (s *SceneUI) NewRainbowMaterial(hue float64) *material.Standard

func (*SceneUI) Render

func (s *SceneUI) Render(a *App)

func (*SceneUI) SetCorners

func (s *SceneUI) SetCorners()

Jump to

Keyboard shortcuts

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