00001 /* 00002 Copyright Remco Bras 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 /* 00020 camera.h: Define and declare the required stuff to deal with cameras. 00021 May be smobbed later or otherwise inline interfaced to GUILE. 00022 */ 00023 00024 #include "constants.h" 00025 00026 #ifndef CAMERA_H 00027 #define CAMERA_H 00028 00029 typedef struct 00030 { 00031 int tilex, tiley; 00032 } camera; 00033 00034 extern camera global_camera; 00035 00036 int get_camera_xoffset(camera c, int screenwidth); 00037 int get_camera_yoffset(camera y, int screenheight); 00038 void set_camera_x(camera c, int value); 00039 void set_camera_y(camera c, int value); 00040 00041 #endif