renderer

package
v0.0.0-...-22a0535 Latest Latest
Warning

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

Go to latest
Published: May 15, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WINDOW_WIDTH  = 256
	WINDOW_HEIGHT = 240
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EbitenRenderer

type EbitenRenderer struct {
	CPU *cpu.CPU
	PPU *ppu.PPU
	// contains filtered or unexported fields
}

func NewEbitenRenderer

func NewEbitenRenderer(cpu *cpu.CPU, ppu *ppu.PPU) *EbitenRenderer

func (*EbitenRenderer) Draw

func (e *EbitenRenderer) Draw(screen *ebiten.Image)

func (*EbitenRenderer) Layout

func (e *EbitenRenderer) Layout(outsideWidth, outsideHeight int) (screenWidth, screenHeight int)

func (*EbitenRenderer) Update

func (e *EbitenRenderer) Update() error

Jump to

Keyboard shortcuts

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