ebitendriver

package
v0.0.0-...-deee935 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package ebitendriver implements a termui.TerminalDriver with a graphical terminal emulator using Ebitengine as the backing library.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	imgcon.Console
	commondriver.Driver
}

Driver implements a termui.TerminalDriver that uses the Pixel library to implement a graphical terminal emulator with a square font.

func New

func New() *Driver

New returns a new Driver ready for use.

func (*Driver) Draw

func (d *Driver) Draw(s *ebiten.Image)

Draw implements the ebiten.Game interface.

func (*Driver) Fini

func (d *Driver) Fini()

Fini implements the termui.TerminalDriver interface.

func (*Driver) Init

func (d *Driver) Init() error

Init implements the termui.TerminalDriver interface.

func (*Driver) Layout

func (d *Driver) Layout(w, h int) (int, int)

Layout implements the ebiten.Game interface.

func (*Driver) Update

func (d *Driver) Update() error

Update implements the ebiten.Game interface.

Jump to

Keyboard shortcuts

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