engine

package
v0.0.0-...-9843872 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Displayable

type Displayable interface {
	GetChildren() []Displayable
	Draw(e *UIEngine) error
}

type UIEngine

type UIEngine struct {
	FPS uint32
	// contains filtered or unexported fields
}

func (*UIEngine) ClearScreen

func (ui *UIEngine) ClearScreen(r, g, b, a uint8) error

func (*UIEngine) CreateWindow

func (ui *UIEngine) CreateWindow(w int32, h int32, logicalW int32, logicalH int32) error

func (*UIEngine) Destroy

func (ui *UIEngine) Destroy()

func (*UIEngine) DrawPixel

func (ui *UIEngine) DrawPixel(x, y int32, r, g, b, a uint8)

func (*UIEngine) DrawRect

func (ui *UIEngine) DrawRect(x, y, w, h int32, r, g, b, a uint8)

func (*UIEngine) DrawText

func (ui *UIEngine) DrawText(text string, x int32, y int32, r, g, b, a uint8) (err error)

func (*UIEngine) FillRect

func (ui *UIEngine) FillRect(x, y, w, h int32, r, g, b, a uint8)

func (*UIEngine) Init

func (ui *UIEngine) Init() error

func (*UIEngine) Present

func (ui *UIEngine) Present()

func (*UIEngine) Render

func (ui *UIEngine) Render(root Displayable)

func (*UIEngine) SetScreenPixels

func (ui *UIEngine) SetScreenPixels(data []byte)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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