Documentation
¶
Index ¶
- Variables
- type PixelsIOBinding
- func (mon *PixelsIOBinding) Destroy()
- func (mon *PixelsIOBinding) Init(disableVsync bool)
- func (mon *PixelsIOBinding) IsRunning() bool
- func (mon *PixelsIOBinding) ProcessInput()
- func (mon *PixelsIOBinding) RenderScreen()
- func (mon *PixelsIOBinding) SetTitle(fps int)
- func (mon *PixelsIOBinding) UpdateCamera()
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.
Click to show internal directories.
Click to hide internal directories.