sdl

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package sdl is the libSDLv2 user interface implementation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

App is the SDL application

func NewApp

func NewApp() *App

NewApp creates a new application

func (*App) End

func (app *App) End()

End the SDL App

func (*App) Init

func (app *App) Init(emu *emulator.Emulator) bool

Init the SDL App

func (*App) Run

func (app *App) Run()

Run the SDL App

type Audio

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

Audio the SDL audio engine

func NewAudio

func NewAudio(config *config.Config) *Audio

NewAudio the SDL audio

func (*Audio) Close added in v0.12.0

func (audio *Audio) Close()

Close closes audio resources

func (*Audio) Init

func (audio *Audio) Init() bool

Init the SDL audio

func (*Audio) Play

func (audio *Audio) Play(buffer *audio.Buffer)

Play plays the audio buffer

type Video

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

Video is the SDL video UI

func NewVideo

func NewVideo(config *config.Config) *Video

NewVideo creates a new video UI

func (*Video) Destroy added in v0.12.0

func (video *Video) Destroy()

Destroy free video resources

func (*Video) Init

func (video *Video) Init(device video.Video) bool

Init initialices video

func (*Video) ToggleFullscreen

func (video *Video) ToggleFullscreen()

ToggleFullscreen enable / disable fullscreen mode

func (*Video) Update

func (video *Video) Update(screen *video.Screen)

Update updates screen changes to video display

Jump to

Keyboard shortcuts

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