00001 #ifndef _TEXTURE_H_
00002 #define _TEXTURE_H_
00003
00004 #include <string>
00005 #include <iostream>
00006 #include <string>
00007 #include <vector>
00008 using namespace std;
00009
00010 #include <GL/gl.h>
00011 #include <GL/glu.h>
00012
00013 #include "SDL.h"
00014 #include "SDL_image.h"
00015
00016 class Texture
00017 {
00018 public:
00019 Texture();
00020 virtual ~Texture();
00021
00025 GLuint createTexture(string textureName);
00026
00027 protected:
00031 void swap(unsigned char &a, unsigned char &b);
00032
00033
00034 GLuint _textureList[100];
00035 int _numTextures;
00036
00037 vector < string > _textureNames;
00038 };
00039
00040 #endif