00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef GEWINDOW_H
00022 #define GEWINDOW_H
00023
00024 #include <iostream.h>
00025 #include <stdio.h>
00026 #include <vector.h>
00027 #include <SDL/SDL.h>
00028 #include <SDL/SDL_image.h>
00029 #include <SDL/SDL_ttf.h>
00030 #include <SDL/SDL_mixer.h>
00031
00032 #include "GE_Layer.h"
00033
00035
00040 class GE_Window
00041 {
00042
00043 private:
00045 SDL_Surface *screen;
00046
00048 vector <GE_Layer *> SubLayer;
00049
00051
00052 void drawLayer(GE_Layer *layer);
00053
00054
00055 public:
00056
00057
00058
00060
00063 GE_Window(int x=1024,int y=768, int z=0, Uint32 flags= SDL_HWSURFACE);
00064
00066 ~GE_Window();
00068
00069 void setName(char * title,char * iconify);
00070
00072
00073 void addSubLayer(GE_Layer &NewLayer, int x = 0, int y =0);
00074
00076
00077 void addSubLayer(GE_Layer* NewLayer, int x = 0, int y =0);
00078
00080
00081 void addSubLayer(GE_Layer MainLayer,GE_Layer &NewLayer,Uint32 x,Uint32 y );
00082
00084
00085 void addSubLayer(GE_Layer&, SDL_Rect);
00086
00088 SDL_PixelFormat *PixelFormat();
00089
00091 void clear(void);
00092
00094
00095 void Draw(void);
00096
00097 };
00098 #endif