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

void ScreenInit(){
  const int screenWidth = 800;
  const int screenHeight = 450;
  InitWindow(screenWidth, screenHeight, "raylib [core] example - basic window");
  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
}