class Tchipi8::IO::SDLController

Included Modules

Defined in:

io.cr

Constant Summary

SDL_DISPLAY_HEIGHT = SDL_DISPLAY_WIDTH / 2
SDL_DISPLAY_WIDTH = 640
SPRITE_HEIGHT = SDL_DISPLAY_HEIGHT / CHIP8_DISPLAY_HEIGHT
SPRITE_WIDTH = SDL_DISPLAY_WIDTH / CHIP8_DISPLAY_WIDTH

Constructors

Instance Method Summary

Instance methods inherited from module Tchipi8::IO::Controller

clear_pixels : Nil clear_pixels, flush_pixels : Nil flush_pixels, read_key : Key | Nil read_key, set_pixel(x : Int, y : Int, state : PixelState) : Nil set_pixel, sync : Nil sync

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def clear_pixels : Nil #

[View source]
def destroy : Nil #

[View source]
def flush_pixels : Nil #

[View source]
def read_key : Key | Nil #

[View source]
def set_pixel(x : Int, y : Int, state : PixelState) : Nil #

[View source]
def sync : Nil #

[View source]