aboutsummaryrefslogtreecommitdiff
path: root/source/main.c
blob: 552b9063a1a4475afca21ecf7d6e82f66f96de0b (plain) (blame)
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
#include <raylib.h>

int main (int count, char ** arguments)
{
  /* :config */
  int horizontal = 1920, vertical = 1080;

  /* this idented (DENTED) style is autistic and dumb but I like it visually */
  {
    SetConfigFlags(FLAG_WINDOW_RESIZABLE);
    /* tell raylib to shut up */
    /* SetTraceLogLevel(LOG_NONE); */
    InitWindow(horizontal, vertical, arguments[0]);
    SetWindowState(FLAG_WINDOW_HIDDEN);
    InitAudioDevice();
    SetWindowPosition(0, 0);
  }
  /* loop to end all loops */
  {

  }
stop:
  SetWindowState(FLAG_WINDOW_HIDDEN);
  CloseAudioDevice();
  CloseWindow();
  return 0;
}