sdl

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const DebugVolume = "Volume"

Variables

View Source
var PaletteOrange = []color.RGBA{
	{0, 0, 0, 0xff},
	{15, 8, 0, 0xff},
	{33, 17, 0, 0xff},
	{51, 25, 0, 0xff},
	{66, 33, 0, 0xff},
	{84, 42, 0, 0xff},
	{102, 51, 0, 0xff},
	{117, 58, 0, 0xff},
	{135, 67, 0, 0xff},
	{153, 76, 0, 0xff},
	{168, 84, 0, 0xff},
	{186, 93, 0, 0xff},
	{204, 102, 0, 0xff},
	{219, 109, 0, 0xff},
	{237, 118, 0, 0xff},
	{255, 127, 0, 0xff},
}

Functions

func DecodeDMD

func DecodeDMD(data []byte) ([]*sdl.Surface, error)

func DecodeDMD1

func DecodeDMD1(data []byte) (*sdl.Surface, error)

func RegisterAudioSystem

func RegisterAudioSystem(eng *spin.Engine)

func RegisterDisplaySystem

func RegisterDisplaySystem(eng *spin.Engine, opts spin.DisplayOptions)

func RegisterDotMatrixSystem

func RegisterDotMatrixSystem(eng *spin.Engine, opts OptionsDotMatrix)

func RegisterInputSystem

func RegisterInputSystem(eng *spin.Engine)

Types

type OptionsDotMatrix

type OptionsDotMatrix struct {
	ID          string
	Scale       int
	Padding     int
	BackColor   color.RGBA
	BorderColor color.RGBA
	BorderSize  int
	Title       string
	Palette     []color.RGBA
}

func DefaultOptionsDotMatrix

func DefaultOptionsDotMatrix() OptionsDotMatrix

type RegisterButton added in v0.7.0

type RegisterButton struct {
	spin.Action
	Button     string
	ActionDown spin.Action
}

type RegisterKey added in v0.7.0

type RegisterKey struct {
	spin.Action
	Key       string
	Mod       string
	EventDown spin.Event
}

Jump to

Keyboard shortcuts

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