00001 // Texture Class by Alan Baylis 2001 00002 00003 #ifndef TextureH 00004 #define TextureH 00005 00006 #include <windows.h> 00007 #include "shared.h" 00008 00009 class TEXTURE 00010 { 00011 public: 00012 TEXTURE(); 00013 ~TEXTURE(); 00014 00015 bool LoadTGA(); 00016 bool LoadTGA(GLenum MagFilter, GLenum MinFilter, GLenum WrapS, GLenum WrapT, bool MipMap); 00017 00018 char TexName[256]; 00019 GLubyte* ImageData; // Image Data (Up To 32 Bits) 00020 GLuint Bpp; // Image Color Depth In Bits Per Pixel 00021 GLuint Width; // Image Width 00022 GLuint Height; // Image Height 00023 GLuint TexID; // Texture ID Used To Select A Texture 00024 float Vertex1_x; 00025 float Vertex1_y; 00026 float Vertex2_x; 00027 float Vertex2_y; 00028 float Vertex3_x; 00029 float Vertex3_y; 00030 }; 00031 00032 #endif 00033