class Display

Defined in:

chip-8/display.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(width : Int32 = 64, height : Int32 = 32, scale : Int32 = 10) #

[View source]

Instance Method Detail

def add_sprite(x : UInt8, y : UInt8, sprite : Array(UInt8)) : UInt8 #

[View source]
def clear : Nil #

[View source]
def draw : Nil #

[View source]
def gfx : Slice(Slice(UInt8)) #

[View source]
def gfx=(gfx : Slice(Slice(UInt8))) #

[View source]
def window : SDL::Window #

[View source]
def window=(window : SDL::Window) #

[View source]