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