iopixel

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PixelScale float64 = 3

PixelScale is the multiplier on the pixels on display

Functions

This section is empty.

Types

type PixelsIOBinding

type PixelsIOBinding struct {
	Gameboy *gb.Gameboy
	Window  *pixelgl.Window
	// contains filtered or unexported fields
}

PixelsIOBinding binds screen output and input using the pixels library.

func NewPixelsIOBinding

func NewPixelsIOBinding(disableVsync bool) *PixelsIOBinding

NewPixelsIOBinding returns a new Pixelsgl IOBinding

func (*PixelsIOBinding) Destroy

func (mon *PixelsIOBinding) Destroy()

Destroy implements IOBinding.Destroy.

func (*PixelsIOBinding) Init

func (mon *PixelsIOBinding) Init(disableVsync bool)

Init initialises the Pixels bindings.

func (*PixelsIOBinding) IsRunning

func (mon *PixelsIOBinding) IsRunning() bool

IsRunning returns if the game should still be running. When the window is closed this will be false so the game stops.

func (*PixelsIOBinding) ProcessInput

func (mon *PixelsIOBinding) ProcessInput()

ProcessInput checks the input and process it.

func (*PixelsIOBinding) RenderScreen

func (mon *PixelsIOBinding) RenderScreen()

RenderScreen renders the pixels on the screen.

func (*PixelsIOBinding) SetTitle

func (mon *PixelsIOBinding) SetTitle(fps int)

SetTitle sets the title of the game window.

func (*PixelsIOBinding) UpdateCamera

func (mon *PixelsIOBinding) UpdateCamera()

UpdateCamera updates the window camera to center the output.

Jump to

Keyboard shortcuts

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