2011-08-24 14:14:44 +02:00
|
|
|
/*
|
|
|
|
Copyright (C) 2003 Parallel Realities
|
2015-03-01 21:37:32 +01:00
|
|
|
Copyright (C) 2011 Guus Sliepen
|
2016-01-02 22:59:48 +01:00
|
|
|
Copyright (C) 2015, 2016 onpon4 <onpon4@riseup.net>
|
2011-08-24 14:14:44 +02:00
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU General Public License
|
2015-02-26 17:20:36 +01:00
|
|
|
as published by the Free Software Foundation; either version 3
|
2011-08-24 14:14:44 +02:00
|
|
|
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
|
2015-02-26 17:20:36 +01:00
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
2011-08-24 14:14:44 +02:00
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
2015-02-26 17:20:36 +01:00
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2011-08-24 14:14:44 +02:00
|
|
|
*/
|
|
|
|
|
2015-09-26 14:49:21 +02:00
|
|
|
#ifndef GFX_H
|
|
|
|
#define GFX_H
|
|
|
|
|
|
|
|
#include "Starfighter.h"
|
2015-03-04 15:11:04 +01:00
|
|
|
|
2015-11-07 01:43:34 +01:00
|
|
|
extern SDL_Surface *gfx_background;
|
2016-01-04 04:39:16 +01:00
|
|
|
extern SDL_Surface *gfx_sprites[MAX_SPRITES];
|
2016-01-04 15:07:30 +01:00
|
|
|
extern SDL_Surface *gfx_faceSprites[FS_MAX];
|
2016-01-04 04:39:16 +01:00
|
|
|
extern SDL_Surface *gfx_shipSprites[MAX_SHIPSPRITES];
|
|
|
|
extern SDL_Surface *gfx_fontSprites[MAX_FONTSPRITES];
|
|
|
|
extern SDL_Surface *gfx_shopSprites[MAX_SHOPSPRITES];
|
2016-01-04 18:41:19 +01:00
|
|
|
extern textObject gfx_textSprites[TS_MAX];
|
2016-01-04 04:39:16 +01:00
|
|
|
extern SDL_Surface *gfx_messageBox;
|
2011-08-26 23:53:46 +02:00
|
|
|
|
2015-09-26 14:49:21 +02:00
|
|
|
void gfx_init();
|
|
|
|
SDL_Surface *gfx_setTransparent(SDL_Surface *sprite);
|
|
|
|
void gfx_blit(SDL_Surface *image, int x, int y, SDL_Surface *dest);
|
2015-11-04 02:26:56 +01:00
|
|
|
int gfx_renderString(const char *in, int x, int y, int fontColor, int wrap, SDL_Surface *dest);
|
2015-11-07 03:35:07 +01:00
|
|
|
void gfx_putPixel(SDL_Surface *surface, int x, int y, Uint32 pixel);
|
2015-11-20 20:11:12 +01:00
|
|
|
void gfx_drawLine(SDL_Surface *dest, int x1, int y1, int x2, int y2, int col);
|
|
|
|
void gfx_drawCircle(int xc, int yc, int R, SDL_Surface *PIX, int col);
|
2015-12-31 16:47:27 +01:00
|
|
|
void gfx_drawRect(SDL_Surface *dest, int x, int y, int w, int h, Uint8 red, Uint8 green, Uint8 blue);
|
|
|
|
SDL_Surface *gfx_createSurface(int width, int height);
|
|
|
|
SDL_Surface *gfx_createTextSurface(const char *inString, int color);
|
|
|
|
void gfx_createTextObject(int index, const char *inString, int x, int y, int fontColor);
|
2016-01-02 22:59:48 +01:00
|
|
|
SDL_Surface *gfx_createAlphaRect(int width, int height, Uint8 red, Uint8 green, Uint8 blue);
|
|
|
|
void gfx_createMessageBox(SDL_Surface *face, const char *message, signed char transparent);
|
|
|
|
SDL_Surface *gfx_loadImage(const char *filename);
|
|
|
|
void gfx_free();
|
2015-03-04 15:11:04 +01:00
|
|
|
|
|
|
|
#endif
|