OSDN Git Service

README-jp.txtのBOMを削除した
[starfighter-jp/starfighter-jp.git] / src / screen.h
1 /*
2 Copyright (C) 2003 Parallel Realities
3 Copyright (C) 2011 Guus Sliepen
4 Copyright (C) 2015, 2016 onpon4 <onpon4@riseup.net>
5
6 This program is free software; you can redistribute it and/or
7 modify it under the terms of the GNU General Public License
8 as published by the Free Software Foundation; either version 3
9 of the License, or (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program.  If not, see <http://www.gnu.org/licenses/>.
18 */
19
20 #ifndef SCREEN_H
21 #define SCREEN_H
22
23 #include "structs.h"
24
25 extern SDL_Surface *screen;
26 extern bRect *screen_bufferHead;
27 extern bRect *screen_bufferTail;
28
29 void screen_blit(SDL_Surface *image, int x, int y);
30 void screen_blitText(int i);
31 int screen_renderString(const char *in, int x, int y, int fontColor);
32 void screen_drawBackground();
33 void screen_addBuffer(int x, int y, int w, int h);
34 void screen_flushBuffer();
35 void screen_unBuffer();
36 void screen_clear(Uint32 color);
37 void screen_drawRect(int x, int y, int w, int h, Uint8 red, Uint8 green, Uint8 blue);
38
39 #endif