aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/gpu/Gpu.kt
diff options
context:
space:
mode:
authorJames Barnett <noreply@jamesbarnett.xyz>2018-08-01 22:02:50 +0100
committerJames Barnett <noreply@jamesbarnett.xyz>2018-08-01 22:02:50 +0100
commit3a3733052672b1c23ae240bd19f71e13336c600b (patch)
treec014139179947c4310921129fdf10c8b059a796c /src/main/kotlin/gpu/Gpu.kt
parente4e561bd94df819f4ce9487f28b1d18a8d178810 (diff)
downloadKGB-3a3733052672b1c23ae240bd19f71e13336c600b.tar.xz
KGB-3a3733052672b1c23ae240bd19f71e13336c600b.zip
Add GPU interface and implementation which returns a test pattern
Diffstat (limited to 'src/main/kotlin/gpu/Gpu.kt')
-rw-r--r--src/main/kotlin/gpu/Gpu.kt9
1 files changed, 9 insertions, 0 deletions
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