00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef _LOGO_H
00018 #define _LOGO_H
00019
00020
00021
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