00001 /* 00002 Copyright Remco Bras and Michael de Lang 2007,2008. 00003 This file is part of RPGE. 00004 00005 RPGE is free software; you can redistribute it and/or modify 00006 it under the terms of the GNU General Public License as published by 00007 the Free Software Foundation; either version 3 of the License, or 00008 (at your option) any later version. 00009 00010 RPGE is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License 00016 along with this program. If not, see <http://www.gnu.org/licenses/> 00017 */ 00018 00019 #ifndef VIDEO_INC_GUARD 00020 #define VIDEO_INC_GUARD 00021 #include <SDL/SDL.h> 00022 #include <SDL/SDL_image.h> 00023 #include <SDL/SDL_ttf.h> 00024 #include "constants.h" 00025 #include "mobs.h" 00026 #include "tile.h" 00027 #include "text.h" 00028 #include "window.h" 00029 #include "camera.h" 00030 00031 SDL_Surface* load_image (char* filename); 00032 void apply_surface (int x, int y, SDL_Surface* source, SDL_Surface* destination, SDL_Rect* clip); 00033 void render_screen(SDL_Surface* dest); 00034 void render_tilegrid(SDL_Surface* dest, tile** grid, int width, int height); 00035 void render_text(SDL_Surface* dest,text t); 00036 #endif