summaryrefslogtreecommitdiff
path: root/src/screen.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/screen.h')
-rw-r--r--src/screen.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/screen.h b/src/screen.h
index 0ea74d1..22f095c 100644
--- a/src/screen.h
+++ b/src/screen.h
@@ -1,8 +1,18 @@
#include "raylib.h"
-#define MODE_CHIP8 0 // Chip-8
-#define MODE_SCHIP 1 // Super-Chip
+#define MODE_CHIP8 0 // Chip-8 64x32
+#define MODE_SCHIP 1 // Super-Chip 128x64
+
+typedef struct SCREEN_DATA {
+ int width, height;
+ int originX;
+ int originY;
+ int pixel;
+ char pixels[64*32];
+} SCREEN_DATA;
void ScreenInit(int width, int height);
+void ScreenClear();
+void ScreenSetPixel(int x, int y, char state);
void ScreenUpdate();
void ScreenFinish();