-
Notifications
You must be signed in to change notification settings - Fork 0
/
globals.h
41 lines (26 loc) · 821 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
39
40
41
#ifndef GLOBALS_H
#define GLOBALS_H
#include <stdbool.h>
// NO HEADERS MAY INCLUDE THIS FILE
#include <SDL2/SDL.h>
#include <SDL2/SDL_mixer.h>
#include <jansson.h>
#include "hashtbl.h"
#include "obj.h"
#include "tonic.h"
void init_resource_caches(void);
long long numBullets;
SDL_Texture *load_texture(SDL_Renderer *r, const char *filename);
void release_textures(void);
Mix_Music *load_song(const char *filename);
void release_songs(void);
Mix_Chunk *load_sound(const char *filename);
void release_sounds(void);
json_t *load_level(const char *filename);
void release_levels(void);
json_t *load_object(const char *filename);
void release_objects(void);
struct hashtbl objectTypes;
void free_shape_each(cpBody *body, cpShape *shape, void *data);
bool point_rect_collide(int x, int y, SDL_Rect rect);
#endif