From f54eb0b9890062e5757297b7a3a013df23ae79d7 Mon Sep 17 00:00:00 2001 From: Can Date: Sun, 12 Jan 2025 13:57:11 +0100 Subject: feat: got renderer working with cpu --- src/renderer.effekt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/renderer.effekt') diff --git a/src/renderer.effekt b/src/renderer.effekt index 7a78321..aa8490e 100644 --- a/src/renderer.effekt +++ b/src/renderer.effekt @@ -7,12 +7,12 @@ Every backend must implement this interface. */ import bytearray -effect start(rom: ByteArray): Unit interface Renderer { - def init(): Unit / start + def init(run: (ByteArray) => Unit at {io, global}): Unit def clear(): Unit def draw(x: Int, y: Int): Unit + def fill(color: String): Unit def update(): Unit def log(msg: String): Unit } -- cgit v1.2.3