blob: 7a78321d1805dd213542ee390eb30f487298e0f5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
module src/renderer
/*
The Renderer for the Chip8 emulator.
To support multiple backends, we define a Renderer interface.
Every backend must implement this interface.
*/
import bytearray
effect start(rom: ByteArray): Unit
interface Renderer {
def init(): Unit / start
def clear(): Unit
def draw(x: Int, y: Int): Unit
def update(): Unit
def log(msg: String): Unit
}
|