class PPU

Defined in:

ppu.cr

Constant Summary

SIZE_OF_LINE = 2
SIZE_OF_TILE = 16

Constructors

Instance Method Summary

Constructor Detail

def self.new(window : SF::RenderWindow) #

[View source]

Instance Method Detail

def bgp : UInt8 #

[View source]
def bgp=(bgp : UInt8) #

[View source]
def canSpriteBeDrawn(priority, framebufferIndex) #

[View source]
def changeMode(mode : PPUModes) #

[View source]
def compareLYC #

[View source]
def getColorFromPalette(color, palette) #

[View source]
def lcdc : UInt8 #

[View source]
def lcdc=(lcdc : UInt8) #

[View source]
def ly : UInt8 #

[View source]
def ly=(ly : UInt8) #

[View source]
def lyc : UInt8 #

[View source]
def lyc=(lyc : UInt8) #

[View source]
def oam : Array(UInt8) #

[View source]
def oam=(oam : Array(UInt8)) #

[View source]
def obp0 : UInt8 #

[View source]
def obp0=(obp0 : UInt8) #

[View source]
def obp1 : UInt8 #

[View source]
def obp1=(obp1 : UInt8) #

[View source]
def readVRAM(addr : UInt16) #

[View source]
def readVRAM16(addr : UInt16) #

[View source]
def renderBG #

[View source]
def renderBuffer #

[View source]
def renderOBJs #

[View source]
def renderScanline #

[View source]
def scx : UInt8 #

[View source]
def scx=(scx : UInt8) #

[View source]
def scy : UInt8 #

[View source]
def scy=(scy : UInt8) #

[View source]
def set_color(color, framebufferIndex) #

[View source]
def stat : UInt8 #

[View source]
def stat=(stat : UInt8) #

[View source]
def statIRQRequest : Bool #

[View source]
def statIRQRequest=(statIRQRequest : Bool) #

[View source]
def step(cycles) #

[View source]
def vBlankIRQRequest : Bool #

[View source]
def vBlankIRQRequest=(vBlankIRQRequest : Bool) #

[View source]
def vram : Array(UInt8) #

[View source]
def vram=(vram : Array(UInt8)) #

[View source]
def writeLCDC(value : UInt8) #

[View source]
def wx : UInt8 #

[View source]
def wx=(wx : UInt8) #

[View source]
def wy : UInt8 #

[View source]
def wy=(wy : UInt8) #

[View source]