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 00017 char TexName[256]; 00018 GLubyte* ImageData; // Image Data (Up To 32 Bits) 00019 GLuint Bpp; // Image Color Depth In Bits Per Pixel 00020 GLuint Width; // Image Width 00021 GLuint Height; // Image Height 00022 GLuint TexID; // Texture ID Used To Select A Texture 00023 float Vertex1_x; 00024 float Vertex1_y; 00025 float Vertex2_x; 00026 float Vertex2_y; 00027 float Vertex3_x; 00028 float Vertex3_y; 00029 }; 00030 00031 #endif 00032