Documentation ¶
Index ¶
- Variables
- type CtrlFlags
- type MaskFlags
- type PPU
- func (p *PPU) DisableFastForward()
- func (p *PPU) EnableFastForward()
- func (p *PPU) FrameComplete() (v bool)
- func (p *PPU) LoadState(r *binario.Reader) error
- func (p *PPU) PendingNMI() (v bool)
- func (p *PPU) Read(addr uint16) uint8
- func (p *PPU) Reset()
- func (p *PPU) SaveState(w *binario.Writer) error
- func (p *PPU) ScanlineComplete() (v bool)
- func (p *PPU) SetDMACallback(callback dmaFunc)
- func (p *PPU) Tick()
- func (p *PPU) TransferOAM(pageAddr uint8)
- func (p *PPU) Write(addr uint16, data uint8)
- type Sprite
- type StatusFlags
- type Tile
Constants ¶
This section is empty.
Variables ¶
View Source
var Colors [64]color.RGBA
Functions ¶
This section is empty.
Types ¶
type MaskFlags ¶
type MaskFlags = uint8
const ( MaskGrayscale MaskFlags = 1 << 0 MaskShowLeftTiles MaskFlags = 1 << 1 MaskShowLeftSprites MaskFlags = 1 << 2 MaskShowBackground MaskFlags = 1 << 3 MaskShowSprites MaskFlags = 1 << 4 MaskEmphasizeRed MaskFlags = 1 << 5 MaskEmphasizeGreen MaskFlags = 1 << 6 MaskEmphasizeBlue MaskFlags = 1 << 7 )
type PPU ¶
type PPU struct { Frame [256][240]color.RGBA NoSpriteLimit bool FastForward bool // contains filtered or unexported fields }
func (*PPU) DisableFastForward ¶
func (p *PPU) DisableFastForward()
func (*PPU) EnableFastForward ¶
func (p *PPU) EnableFastForward()
func (*PPU) FrameComplete ¶
func (*PPU) PendingNMI ¶
func (*PPU) ScanlineComplete ¶
func (*PPU) SetDMACallback ¶
func (p *PPU) SetDMACallback(callback dmaFunc)
func (*PPU) TransferOAM ¶
type StatusFlags ¶
type StatusFlags = uint8
const ( StatusSpriteOverflow StatusFlags = 1 << 5 StatusSpriteZeroHit StatusFlags = 1 << 6 StatusVBlank StatusFlags = 1 << 7 )
Click to show internal directories.
Click to hide internal directories.