/+junk/c_sdl_joypad_ducktape

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/%2Bjunk/c_sdl_joypad_ducktape

« back to all changes in this revision

Viewing changes to src/game_utils.h

  • Committer: Gustav Hartvigsson
  • Date: 2014-01-12 00:37:14 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20140112003714-nj8ztv2qhwbm75zy
* fixed a few Doxygen problems.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
#ifndef __H_GAME_UTILS__
3
3
#define __H_GAME_UTILS__
4
4
 
5
 
/**
 
5
/*
6
6
 * This file, as the rest of the project is under MIT license.
7
7
 * see http://opensource.org/licenses/MIT
8
8
 *
11
11
 
12
12
#include <SDL2/SDL.h>
13
13
 
14
 
/**
 
14
/** @file
15
15
 * This file contains a set of utility functions.
16
16
 */
17
17
 
22
22
SDL_Color game_color_set_draw_color (SDL_Renderer * renderer,
23
23
                                                   const SDL_Color color);
24
24
 
 
25
/**
 
26
 * create a colour.
 
27
 */
25
28
SDL_Color game_color_create_color (int r, int g, int b, int a);
26
29
 
 
30
/**
 
31
 * Create a rectangle;
 
32
 */
27
33
SDL_Rect game_rect_create_rect (int x, int y, int h, int w);
28
34
 
 
35
/**
 
36
 * allocate a new rectangle.
 
37
 *
 
38
 * This must be freed by the user.
 
39
 */
29
40
SDL_Rect * game_rect_new (int x, int y, int h, int w);
30
41
 
 
42
 
 
43
/**
 
44
 * Print a good loocking warning message.
 
45
 */
31
46
void print_error (const char * str, ... );
32
47
 
33
48
#endif