| 1 |
/** |
| 2 |
* Header for graphics |
| 3 |
|
| 4 |
* Copyright (C) 2007, 2008, 2009, 2014, 2015 Sylvain Beucler |
| 5 |
|
| 6 |
* This file is part of GNU FreeDink |
| 7 |
|
| 8 |
* GNU FreeDink is free software; you can redistribute it and/or |
| 9 |
* modify it under the terms of the GNU General Public License as |
| 10 |
* published by the Free Software Foundation; either version 3 of the |
| 11 |
* License, or (at your option) any later version. |
| 12 |
|
| 13 |
* GNU FreeDink is distributed in the hope that it will be useful, but |
| 14 |
* WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 |
* General Public License for more details. |
| 17 |
|
| 18 |
* You should have received a copy of the GNU General Public License |
| 19 |
* along with this program. If not, see |
| 20 |
* <http://www.gnu.org/licenses/>. |
| 21 |
*/ |
| 22 |
|
| 23 |
#ifndef _GFX_H |
| 24 |
#define _GFX_H |
| 25 |
|
| 26 |
#include "SDL.h" |
| 27 |
#include "SDL2_framerate.h" |
| 28 |
#include "rect.h" |
| 29 |
#include "IOGfxSurface.h" |
| 30 |
#include "IOGfxDisplaySW.h" |
| 31 |
|
| 32 |
#define GFX_RES_W 640 |
| 33 |
#define GFX_RES_H 480 |
| 34 |
#define GFX_PLAY_W 600 |
| 35 |
#define GFX_PLAY_H 400 |
| 36 |
#define GFX_PLAY_LEFT 20 |
| 37 |
#define GFX_PLAY_TOP 0 |
| 38 |
|
| 39 |
|
| 40 |
extern int truecolor; |
| 41 |
extern IOGfxDisplay* g_display; |
| 42 |
extern IOGfxSurface* IOGFX_backbuffer; |
| 43 |
extern IOGfxSurface* IOGFX_tmp1; |
| 44 |
extern IOGfxSurface* IOGFX_tmp2; |
| 45 |
extern IOGfxSurface* IOGFX_background; |
| 46 |
|
| 47 |
extern /*bool*/int abort_this_flip; |
| 48 |
|
| 49 |
extern Uint32 truecolor_fade_lasttick; |
| 50 |
|
| 51 |
|
| 52 |
#define FPS 60 |
| 53 |
extern FPSmanager framerate_manager; |
| 54 |
|
| 55 |
|
| 56 |
extern int gfx_init(bool dinkgl, bool windowed, char* splash_path); |
| 57 |
extern void gfx_quit(void); |
| 58 |
extern void gfx_log_meminfo(void); |
| 59 |
|
| 60 |
#endif |