1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#ifndef __H_GAME_UTILS__
#define __H_GAME_UTILS__
#include <SDL2/SDL.h>
/**
* This file contains a set of utility functions.
*/
/**
* Sets the renderer draw colour to the color inputted, and returns the old
* renderer colour.
*/
SDL_Color game_color_set_draw_color (SDL_Renderer * renderer,
const SDL_Color color);
SDL_Color game_color_create_color (int r, int g, int b, int a);
SDL_Rect game_rect_create_rect (int x, int y, int h, int w);
SDL_Rect * game_rect_new (int x, int y, int h, int w);
#endif
|