Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

Texture.h

Go to the documentation of this file.
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   // Texture variables
00034   GLuint _textureList[100]; // 100 max per object
00035   int _numTextures;
00036 
00037   vector < string > _textureNames;
00038 };
00039 
00040 #endif

Generated on Wed Apr 21 11:10:53 2004 for naturecalls by doxygen1.2.18