Documentation ¶
Index ¶
- type Displayable
- type UIEngine
- func (ui *UIEngine) ClearScreen(r, g, b, a uint8) error
- func (ui *UIEngine) CreateWindow(w int32, h int32, logicalW int32, logicalH int32) error
- func (ui *UIEngine) Destroy()
- func (ui *UIEngine) DrawPixel(x, y int32, r, g, b, a uint8)
- func (ui *UIEngine) DrawRect(x, y, w, h int32, r, g, b, a uint8)
- func (ui *UIEngine) DrawText(text string, x int32, y int32, r, g, b, a uint8) (err error)
- func (ui *UIEngine) FillRect(x, y, w, h int32, r, g, b, a uint8)
- func (ui *UIEngine) Init() error
- func (ui *UIEngine) Present()
- func (ui *UIEngine) Render(root Displayable)
- func (ui *UIEngine) SetScreenPixels(data []byte)
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 (*UIEngine) CreateWindow ¶
func (*UIEngine) Render ¶
func (ui *UIEngine) Render(root Displayable)
func (*UIEngine) SetScreenPixels ¶
Click to show internal directories.
Click to hide internal directories.