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

void ScreenInit(int width, int height){
  InitWindow(width, height, "Chip-8 Emulator");
  SetTargetFPS(60); // Set game to run at 60 frames-per-second
}

void ScreenUpdate(){
  BeginDrawing();
  ClearBackground(RAYWHITE);
  DrawText("Congrats! You created your first window!", 190, 200, 20, LIGHTGRAY);
  EndDrawing();
}

void ScreenFinish(){
  CloseWindow(); // Close window and OpenGL context
}