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 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)
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)
Click to show internal directories.
Click to hide internal directories.