summaryrefslogtreecommitdiffstats
path: root/src/Gameboy/Canvas/DrawContextInterface.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Gameboy/Canvas/DrawContextInterface.php')
-rw-r--r--src/Gameboy/Canvas/DrawContextInterface.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Gameboy/Canvas/DrawContextInterface.php b/src/Gameboy/Canvas/DrawContextInterface.php
new file mode 100644
index 0000000..73f0c43
--- /dev/null
+++ b/src/Gameboy/Canvas/DrawContextInterface.php
@@ -0,0 +1,18 @@
+<?php
+namespace GameBoy\Canvas;
+
+/**
+ * Interface to draw the GameBoy output
+ * GameBoy screen size: 160 x 144
+ */
+interface DrawContextInterface
+{
+ /**
+ * Draw image on canvas
+ *
+ * @param Array $canvasBuffer Each pixel => 4 items on array (RGBA)
+ * @param int $left
+ * @param int $top
+ */
+ public function draw($canvasBuffer, $left, $top);
+} \ No newline at end of file