window.h

00001 /*
00002 Copyright Remco Bras 2007
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 WINDOW_H
00020 #define WINDOW_H
00021 
00022 #include "video.h"
00023 #include "imagestack.h"
00024 #include <SDL/SDL.h>
00025 
00026 typedef struct
00027 {
00028   unsigned int width, height,x, y;
00029   int imageindex; 
00030   SDL_Rect clip_rect;
00031 } window;
00032 
00033 extern sequence windows;
00034 
00035 void init_windows();
00036 window  create_window(unsigned int w, unsigned int h, unsigned int x, unsigned int y, char* spritefilename, SDL_Rect clip);
00037 void render_window(SDL_Surface* dest,window w);
00038 void clear_windowstack(void);
00039 int windowstack_addwindow(window w);
00040 void windowstack_remove(int index);
00041 void windowstack_removewindow(window w);
00042 void render_windows(SDL_Surface* dest);
00043 window get_obj_window(object o);
00044 object make_window_obj(window w);
00045 void move_window(int index, unsigned x, unsigned y);
00046 void resize_window(int index, unsigned w, unsigned h);
00047 
00048 #endif
 All Classes

Generated on Tue Feb 15 21:31:40 2011 by  doxygen 1.6.1