Documentation ¶
Index ¶
Constants ¶
View Source
const CYCLES_PER_LINE = 341
View Source
const SPRITES_ARRAY_MAX = 64
View Source
const SPRITES_NUMBER = 0x100
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Background ¶
type Background struct {
Tiles []Tile
}
func NewBackground ¶
func NewBackground() Background
func (*Background) Clear ¶
func (this *Background) Clear()
type PaletteRam ¶
func NewPaletteRam ¶
func NewPaletteRam() PaletteRam
func (PaletteRam) Read ¶
func (this PaletteRam) Read() []byte
func (*PaletteRam) Write ¶
func (this *PaletteRam) Write(addr uint16, data byte)
type Ppu ¶
type Ppu struct { Registers []byte Cycle int Line int IsValidVramAddr bool IsLowerVramAddr bool SpriteRamAddr uint16 VramAddr uint16 Vram bus.Ram VramReadBuf byte SpriteRam bus.Ram Bus bus.PpuBus Background Background Sprites []SpriteWithAttribute RenderingData RenderingData Palette PaletteRam Interrupts *cpu_interrupts.Interrupts IsHrizontalScroll bool ScrollX byte ScrollY byte IsHrizontalMirror bool }
func NewPpu ¶
func NewPpu(ppubus bus.PpuBus, interrupts *cpu_interrupts.Interrupts, isHrizontalMirror bool) Ppu
func (*Ppu) TransferSprite ¶
type RenderingData ¶
type RenderingData struct { Palette []byte Background Background Sprites []SpriteWithAttribute }
func (RenderingData) IsSetBackground ¶
func (this RenderingData) IsSetBackground() bool
func (RenderingData) IsSetSprites ¶
func (this RenderingData) IsSetSprites() bool
type SpriteWithAttribute ¶
type SpriteWithAttribute struct { SpriteArry Sprite X byte Y byte Attribute byte SpriteId byte IsSet bool //Spriteがセットされているか判定するgoNes独自パラメータ }
func NewStripeWithAttribute ¶
Click to show internal directories.
Click to hide internal directories.