]> git.mxchange.org Git - quix0rs-blobwars.git/blobdiff - src/CGraphics.h
Prevent a segmentation fault when using the -map option without specifying a map.
[quix0rs-blobwars.git] / src / CGraphics.h
index 14df0efc117456cc32a0b654748d411064e3eef0..151f355fa93bd06cfdd50deaebcfe367353f20ce 100644 (file)
@@ -1,5 +1,6 @@
 /*
 Copyright (C) 2004-2011 Parallel Realities
+Copyright (C) 2011-2015 Perpendicular Dimensions
 
 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License
@@ -18,6 +19,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
 */
 
+void SDL_SetAlpha(SDL_Surface *surface, uint8_t value);
+
 class Graphics {
 
        private:
@@ -57,6 +60,9 @@ class Graphics {
 
                bool takeRandomScreenShots;
 
+               SDL_Window *window;
+               SDL_Renderer *renderer;
+               SDL_Texture *texture;
                SDL_Surface *screen, *background;
                SDL_Surface *tile[MAX_TILES];