aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
blob: 68a69b952fea847366f4a63af9411c69adb09062 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* Copyright (C) 2024 Aryadev Chavali

 * You may distribute and modify this code under the terms of the MIT
 * license.  You should have received a copy of the MIT license with
 * this file.  If not, please write to: aryadev@aryadevchavali.com.

 * Created: 2024-05-08
 * Author: Aryadev Chavali
 * Description: Entrypoint
 */

#include <raylib.h>

#define WIDTH  800
#define HEIGHT 600

int main(void)
{
  InitWindow(WIDTH, HEIGHT, "snek");
  while (!WindowShouldClose())
  {
    BeginDrawing();
    ClearBackground(BLACK);
    DrawTriangle({400, 0}, {100, 300}, {700, 300}, RED);
    EndDrawing();
  }
  CloseWindow();
  return 0;
}