summaryrefslogtreecommitdiff
path: root/src/screen.h
blob: 67d6184c89ca528837df4ac51a2bfb7e8ef6db12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "raylib.h"

#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 ScreenClose();