From 3a3733052672b1c23ae240bd19f71e13336c600b Mon Sep 17 00:00:00 2001 From: James Barnett Date: Wed, 1 Aug 2018 22:02:50 +0100 Subject: Add GPU interface and implementation which returns a test pattern --- src/main/kotlin/gpu/Gpu.kt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/main/kotlin/gpu/Gpu.kt (limited to 'src/main/kotlin/gpu/Gpu.kt') diff --git a/src/main/kotlin/gpu/Gpu.kt b/src/main/kotlin/gpu/Gpu.kt new file mode 100644 index 0000000..db95c03 --- /dev/null +++ b/src/main/kotlin/gpu/Gpu.kt @@ -0,0 +1,9 @@ +package gpu + +import java.awt.Color +import java.awt.image.BufferedImage + +interface Gpu { + fun setPixel(x: Int, y: Int, colour: Color) + fun getFrame(): BufferedImage +} \ No newline at end of file -- cgit v1.2.3