-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGlobals.h
38 lines (30 loc) · 828 Bytes
/
Globals.h
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
30
31
32
33
34
35
36
37
38
#pragma once
#ifndef __GLOBALS_H__
#define __GLOBALS_H__
#include <windows.h>
#define LOG(format, ...) Log(__FILE__,__LINE__,format,__VA_ARGS__);
void Log(const char file[], int line, const char* format, ...);
#define EXIT_FAILURE 1
#define EXIT_SUCCESS 0
#define MIN( a, b ) ( ((a) < (b)) ? (a) : (b) )
#define MAX( a, b ) ( ((a) > (b)) ? (a) : (b) )
enum update_status
{
UPDATE_CONTINUE = 1,
UPDATE_STOP,
UPDATE_ERROR
};
typedef unsigned char uchar;
typedef unsigned int uint;
// Settings
#define WINDOW_ICON_PATH "Assets/Sprites/windowIcon.bmp"
#define SCREEN_WIDTH 256 //ratio 8:7
#define SCREEN_HEIGHT 224
#define WIN_FULLSCREEN 0
#define WIN_FULLSCREEN_DESKTOP 0
#define SCREEN_SIZE 3
#define WIN_BORDERLESS 0
#define WIN_RESIZABLE 1
#define REN_VSYNC 1
#define WIN_TITLE "U.N. Squadron"
#endif // __GLOBALS_H__