Documentation
¶
Index ¶
Constants ¶
View Source
const ( ModeHBlank = iota ModeVBlank ModeOAM ModeVRAM )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GPU ¶
type GPU struct {
// contains filtered or unexported fields
}
func (*GPU) FlushFrameBuffer ¶
func (gpu *GPU) FlushFrameBuffer()
type Sprite ¶
type Sprite struct { X uint8 Y uint8 TileID uint8 // Bit7 OBJ-to-BG Priority (0=OBJ Above BG, 1=OBJ Behind BG color 1-3) // (Used for both BG and Window. BG color 0 is always behind OBJ) ObjToBgPriority bool // Bit6 Y flip (0=Normal, 1=Vertically mirrored) YFlip bool // Bit5 X flip (0=Normal, 1=Horizontally mirrored) XFlip bool // Bit4 Palette number **Non CGB Mode Only** (0=OBP0, 1=OBP1) PaletteNumber uint8 // *** CGB MODE *** // Bit3 Tile VRAM-Bank **CGB Mode Only** (0=Bank 0, 1=Bank 1) BankNumber uint8 // Bit2-0 Palette number **CGB Mode Only** (OBP0-7) ColorPalette uint8 // contains filtered or unexported fields }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.