ppu

package
v0.0.0-...-484c125 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FreeScreen

func FreeScreen(img *ScreenImage)

Types

type PPU

type PPU struct {
	// contains filtered or unexported fields
}

func New

func New(mmu mmu.MMU, screen chan<- *ScreenImage, exitChan <-chan struct{}) *PPU

New creates a new ppu and connects it to the given mmu

func (*PPU) Init

func (p *PPU) Init(noBoot bool)

func (*PPU) PrintPalettes

func (p *PPU) PrintPalettes()

func (*PPU) Read

func (p *PPU) Read(addr uint16) byte

func (*PPU) Step

func (p *PPU) Step()

Step the PPU for one M-Cycle

func (*PPU) Write

func (p *PPU) Write(addr uint16, val byte)

type RGB

type RGB struct{ R, G, B byte }

func (RGB) RGBA

func (c RGB) RGBA() (r, g, b, a uint32)

type ScreenImage

func (*ScreenImage) At

func (s *ScreenImage) At(x, y int) color.Color

func (*ScreenImage) Bounds

func (s *ScreenImage) Bounds() image.Rectangle

func (*ScreenImage) ColorModel

func (s *ScreenImage) ColorModel() color.Model

Jump to

Keyboard shortcuts

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