root/sdl_draw.h

Revision 106, 1.8 kB (checked in by ng, 5 years ago)

mise a jour licence

Line 
1 /***************************************************************************
2  *   This file is part of the 'gemmes' project                             *
3  *                                                                         *
4  *                                                                         *
5  *   Copyright (C) 2007 by                                                 *
6  *         GARCH Soufiane                                                  *
7  *         GUILLAUME Nicolas <ng@ngsoft-fr.com>                            *
8  *                                                                         *
9  *                                                                         *
10  *   This program is free software; you can redistribute it and/or modify  *
11  *   it under the terms of the GNU General Public License as published by  *
12  *   the Free Software Foundation; version 2 of the License only.          *
13  *   See the COPYING file.                                                 *
14  ***************************************************************************/
15
16
17 #ifndef SDL_DRAW_H
18 #define SDL_DRAW_H
19
20 /* some useful SDL routines */
21
22 #ifdef G_WINDOWS
23 # include "SDL.h"
24 #else
25 # include "SDL/SDL.h"
26 #endif
27
28
29 void draw_tile(SDL_Surface *screen, SDL_Surface *tiles, int tile, int tile_size_x, int tile_size_y, int x, int y);
30
31 void draw_transparent_tile(SDL_Surface *screen, SDL_Surface *tiles, int tile, int tile_size_x, int tile_size_y, int x, int y, unsigned int transparent_color);
32
33 void draw_tile2(SDL_Surface *screen, SDL_Surface *tiles, int tilex, int tiley, int tile_size_x, int tile_size_y, int x, int y);
34
35 void draw_rect(SDL_Surface *screen, int x, int y, int width, int height, int c);
36
37
38 void draw_string(SDL_Surface *screen, SDL_Surface * font, int x, int y, char * s);
39
40 #endif
Note: See TracBrowser for help on using the browser.