starfighter/src/screen.h

37 lines
1.1 KiB
C
Raw Normal View History

2015-09-26 14:49:21 +02:00
/*
Copyright (C) 2003 Parallel Realities
Copyright (C) 2011 Guus Sliepen
Copyright (C) 2015 Julian Marchant
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 3
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef SCREEN_H
#define SCREEN_H
2015-11-02 23:53:05 +01:00
#include "structs.h"
2015-09-26 14:49:21 +02:00
extern SDL_Surface *screen;
2015-11-02 23:53:05 +01:00
extern bRect *screen_bufferHead;
extern bRect *screen_bufferTail;
2015-09-26 14:49:21 +02:00
void screen_blit(SDL_Surface *image, int x, int y);
2015-10-11 18:04:52 +02:00
void screen_blitText(int i);
2015-11-07 01:36:20 +01:00
int screen_renderString(const char *in, int x, int y, int fontColor);
2015-11-02 23:53:05 +01:00
void screen_addBuffer(int x, int y, int w, int h);
void screen_flushBuffer();
void screen_unBuffer();
2015-09-26 14:49:21 +02:00
#endif