starfighter/src/screen.h

45 lines
1.5 KiB
C
Raw Permalink Normal View History

2015-09-26 14:49:21 +02:00
/*
Copyright (C) 2003 Parallel Realities
Copyright (C) 2011 Guus Sliepen
Copyright (C) 2015-2020 The Diligent Circle <diligentcircle@riseup.net>
2015-09-26 14:49:21 +02:00
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
2016-11-26 00:21:31 +01:00
#include "SDL.h"
#include "defs.h"
2015-11-02 23:53:05 +01:00
#include "structs.h"
2015-09-26 14:49:21 +02:00
extern SDL_Surface *screen;
2016-11-26 00:41:55 +01:00
extern LinkedRect *screen_bufferHead;
extern LinkedRect *screen_bufferTail;
2015-09-26 14:49:21 +02:00
void screen_blit(SDL_Surface *image, int x, int y);
void screen_blitText(int i, int x, int y);
2015-11-07 01:36:20 +01:00
int screen_renderString(const char *in, int x, int y, int fontColor);
int screen_renderUnicode(const char *in, int x, int y, int fontColor);
2015-11-07 01:43:34 +01:00
void screen_drawBackground();
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();
void screen_clear(Uint32 color);
void screen_drawRect(int x, int y, int w, int h, Uint8 red, Uint8 green, Uint8 blue);
void screen_adjustDimensions(int w, int h);
2015-09-26 14:49:21 +02:00
#endif