include/logo.h

Go to the documentation of this file.
00001 /*
00002  *  This program is free software; you can redistribute it and/or modify
00003  *  it under the terms of the GNU General Public License as published by
00004  *  the Free Software Foundation; either version 2 of the License, or
00005  *  (at your option) any later version.
00006  *
00007  *  This program is distributed in the hope that it will be useful,
00008  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00009  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00010  *  GNU Library General Public License for more details.
00011  *
00012  *  You should have received a copy of the GNU General Public License
00013  *  along with this program; if not, write to the Free Software
00014  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00015  */
00016  
00017 #ifndef _LOGO_H
00018 #define _LOGO_H
00019 
00020 //#include <stdio.h>
00021 //#include <stdlib.h>
00022 #include <GL/gl.h>
00023 #include <GL/glu.h>
00024 #include <SDL/SDL.h>
00025 #include <fstream>
00026 #include <iostream>
00027 #include <string>
00028 
00029 #include "textures.h"
00030 #include "settings.h"
00031 #include "globals.h"
00032 
00033 using namespace std;
00034 
00035 #define MAX_LOGOS 10
00036 #define SECS_PER_LOGO 3.0f
00037 #define LOGO_FADE_SECS 0.5f
00038 #define FADE_OUT true
00039 #define LOGO_DIM 512 //width and height of logo image
00040 
00041 class LOGO
00042 {
00043 private:
00044         int num_logos;
00045         string logo_fn[MAX_LOGOS];
00046         TEXTURE_HANDLE logo_tex[MAX_LOGOS];
00047         float ltime;
00048         void Cleanup();
00049         
00050 public:
00051         LOGO();
00052         void AddLogo(string filename);
00053         bool IncrementTime(float fps);
00054         void Draw();
00055 
00056         void run();
00057 };
00058 
00059 #endif /* _LOGO_H */

Generated on Thu Oct 19 04:05:47 2006 by  doxygen 1.4.6