blob: 9faf781c94568e69b296810158cc93858df78e59 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#pragma once
#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, unsigned char state);
void ScreenPixelFlip(int x, int y);
void ScreenUpdate();
void ScreenClose();
|