internal

package
v0.0.0-...-304be05 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageConfig

type ImageConfig struct {
	// Window dimensions
	// defaults to 240x480
	Height int
	Width  int

	Debug bool
}

func NewImageConfig

func NewImageConfig() *ImageConfig

type OtoBuffer

type OtoBuffer struct {
	// contains filtered or unexported fields
}

func (OtoBuffer) Read

func (ob OtoBuffer) Read(b []byte) (n int, err error)

type OtoSink

type OtoSink struct {
	Config     *audio.AudioConfig
	BufferSize int
	GetSamples func(cfg *audio.AudioConfig, n int) []int
	// contains filtered or unexported fields
}
var CurrentOtoSink *OtoSink

func NewOtoSink

func NewOtoSink(cfg *audio.AudioConfig) (*OtoSink, error)

func (*OtoSink) Close

func (s *OtoSink) Close(cfg *audio.AudioConfig) error

func (*OtoSink) Start

func (s *OtoSink) Start(f func(cfg *audio.AudioConfig, n int) []int) error

type ScreenController

type ScreenController struct {
	// contains filtered or unexported fields
}

func NewScreenController

func NewScreenController() *ScreenController

func (*ScreenController) AddComponent

func (g *ScreenController) AddComponent(c components.Component) error

func (*ScreenController) Draw

func (g *ScreenController) Draw(screen *ebiten.Image)

func (*ScreenController) Layout

func (g *ScreenController) Layout(outsideWidth, outsideHeight int) (screenWidth, screenHeight int)

func (*ScreenController) Update

func (g *ScreenController) Update(_ *ebiten.Image) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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