aboutsummaryrefslogtreecommitdiff
path: root/sources/globals.c
blob: 712edbf0e4490a7fb23a62ad3d8e6b028fe30060 (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
#include "TZR.h"
#include <stddef.h>
#include <SDL2/SDL_render.h>
#include <SDL2/SDL_scancode.h>

TZR_Config ___tzr_config = {};
TZR_Color ___tzr_color = {0.0f, 0.0f, 0.0f, 0.0f, 1.0f};
TZR_Resource *___tzr_resources = NULL;
size_t ___tzr_resources_capacity = 0;
size_t ___tzr_resources_size = 0;
SDL_Window *___tzr_window = NULL;
SDL_Renderer *___tzr_renderer = NULL;
SDL_Texture *___tzr_target = NULL;
unsigned long ___tzr_tick = 0;
unsigned long ___tzr_next_time = 0;
unsigned long ___tzr_min_dt = 0;
int ___tzr_should_quit = 0;
int ___tzr_mouse_x = 0;
int ___tzr_mouse_y = 0;
TZR_KeyState ___tzr_keystates[SDL_NUM_SCANCODES] = {};
TZR_KeyState ___tzr_mousestates[256] = {}; //doc says than mouse button is u8
float ___tzr_scale = 1.0;
int ___tzr_off_x = 1.0;
int ___tzr_off_y = 1.0;