sdl

package
Version: v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

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) 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) Init

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

Init initialices video

func (*Video) Render

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

Render renders screen to video UI

func (*Video) ToggleFullscreen

func (video *Video) ToggleFullscreen()

ToggleFullscreen enable / disable fullscreen mode

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto