blob: d239c0d6b245c356351cd1a7b42cf005d2c72949 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#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 ScreenUpdate();
void ScreenClose();
|