Página principal | Jerarquía de la clase | Lista de componentes | Lista de archivos | Miembros de las clases

GE_Window.h

00001 /***************************************************************************
00002  *   Copyright (C) 2004 by Luis Murciano Renedo                            *
00003  *   luis@localhost                                                        *
00004  *                                                                         *
00005  *   This program 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 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program 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, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
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     //GE_Window();//como tenemos un constructor con parametros implicitos no es necesario
00058 
00060 
00063     GE_Window(int x=1024,int y=768, int z=0, Uint32 flags= SDL_HWSURFACE/*|SDL_FULLSCREEN*/);
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);//inspiracion divina!!!
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

Generado el Mon Dec 6 10:30:28 2004 para Genma por doxygen 1.3.5