window.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
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