Versions in this module Expand all Collapse all v0 v0.0.2 Jun 22, 2013 v0.0.1 Jun 22, 2013 Changes in this version + const BGP + const CGB_BGP_WRITEDATA_REGISTER + const CGB_BGP_WRITESPEC_REGISTER + const CGB_OBJP_WRITEDATA_REGISTER + const CGB_OBJP_WRITESPEC_REGISTER + const CGB_VRAM_BANK_SELECT + const DISPLAY_HEIGHT + const DISPLAY_WIDTH + const HBLANK + const LCDC + const LY + const LYC + const NAME + const OAMREAD + const OBJECTPALETTE_0 + const OBJECTPALETTE_1 + const PREFIX + const SCROLLX + const SCROLLY + const STAT + const Sprite8x16Mode + const Sprite8x8Mode + const TILEDATA0 + const TILEDATA1 + const TILEMAP0 + const TILEMAP1 + const VBLANK + const VRAMREAD + const WX + const WY + var GBColours []types.RGB = []types.RGB + type CGBBackgroundTileAttrs struct + BankNo int + FlipHorizontally bool + FlipVertically bool + HasPriority bool + PaletteNo int + func NewCGBBackgroundTileAttrs(attributeData byte) *CGBBackgroundTileAttrs + func (cattr *CGBBackgroundTileAttrs) String() string + type CGBColor types.Word + func (c CGBColor) High() byte + func (c CGBColor) Low() byte + func (c CGBColor) ToRGB() types.RGB + type CGBPalette [4]CGBColor + func (cp *CGBPalette) UpdateHigh(colorNo int, value byte) + func (cp *CGBPalette) UpdateLow(colorNo int, value byte) + type CGBPaletteSpecRegister struct + High bool + IncrementOnNext bool + PalleteDataNo int + PalleteNo int + Value byte + func (psr *CGBPaletteSpecRegister) Increment() + func (psr *CGBPaletteSpecRegister) Update(value byte) + type GPU struct + RunningColorGBHardware bool + func NewGPU() *GPU + func (g *GPU) CoincidenceLCDInterruptEnabled() bool + func (g *GPU) DrawScanline(tilemapOffset, lineOffset types.Word, screenX, tileX, tileY int) + func (g *GPU) DrawSpriteTileLine(s Sprite, tileId, screenYOffset, tileY int) + func (g *GPU) Dump8x8Sprites() [40][8][8]types.RGB + func (g *GPU) DumpTilemap(tileMapAddr types.Word, tileDataSigned bool) [256][256]types.RGB + func (g *GPU) DumpTiles() [512][8][8]types.RGB + func (g *GPU) HblankLCDInterruptEnabled() bool + func (g *GPU) LinkIRQHandler(m components.IRQHandler) + func (g *GPU) LinkScreen(screen inputoutput.Screen) + func (g *GPU) Name() string + func (g *GPU) Read(addr types.Word) byte + func (g *GPU) ReadFromVideoRAM(addr types.Word) byte + func (g *GPU) RenderBackgroundScanline() + func (g *GPU) RenderSpritesOnScanline() + func (g *GPU) RenderWindowScanline() + func (g *GPU) Reset() + func (g *GPU) Step(t int) + func (g *GPU) UpdateSprite(addr types.Word, value byte) + func (g *GPU) UpdateTile(addr types.Word, value byte, bank byte) + func (g *GPU) VBlankLCDInterruptEnabled() bool + func (g *GPU) Write(addr types.Word, value byte) + func (g *GPU) WriteToVideoRAM(addr types.Word, value byte) + type Palette [4]types.RGB + type RawTile [16]byte + type Sprite interface + GetTileID func(no int) int + IsScanlineDrawQueueEmpty func() bool + PopScanline func() (int, int) + PushScanlines func(fromScanline, amount int) + ResetScanlineDrawQueue func() + SpriteAttributes func() *SpriteAttributes + UpdateSprite func(addr types.Word, value byte) + type Sprite8x16 struct + CurrentTileLine int + ScanlineDrawQueue []int + SpriteAttrs *SpriteAttributes + TileIDs [2]int + func NewSprite8x16() *Sprite8x16 + func (s *Sprite8x16) GetTileID(no int) int + func (s *Sprite8x16) IsScanlineDrawQueueEmpty() bool + func (s *Sprite8x16) PopScanline() (int, int) + func (s *Sprite8x16) PushScanlines(fromScanline, amount int) + func (s *Sprite8x16) ResetScanlineDrawQueue() + func (s *Sprite8x16) SpriteAttributes() *SpriteAttributes + func (s *Sprite8x16) String() string + func (s *Sprite8x16) UpdateSprite(addr types.Word, value byte) + type Sprite8x8 struct + CurrentTileLine int + ScanlineDrawQueue []int + SpriteAttrs *SpriteAttributes + TileID int + func NewSprite8x8() *Sprite8x8 + func (s *Sprite8x8) GetTileID(no int) int + func (s *Sprite8x8) IsScanlineDrawQueueEmpty() bool + func (s *Sprite8x8) PopScanline() (int, int) + func (s *Sprite8x8) PushScanlines(fromScanline, amount int) + func (s *Sprite8x8) ResetScanlineDrawQueue() + func (s *Sprite8x8) SpriteAttributes() *SpriteAttributes + func (s *Sprite8x8) String() string + func (s *Sprite8x8) UpdateSprite(addr types.Word, value byte) + type SpriteAttributes struct + CGBBankNo int + CGBPaletteNo int + NonCGBPaletteSelected int + ShouldFlipHorizontally bool + ShouldFlipVertically bool + SpriteHasPriority bool + X int + Y int + func (s *SpriteAttributes) String() string + func (sa *SpriteAttributes) Update(attributeId int, fromValue byte) + type Tile [8][8]int