00001 // Texture Class by Alan Baylis 2001 00002 00003 #ifndef TextureH 00004 #define TextureH 00005 00006 #include "shared.h" 00007 00008 class TEXTURE 00009 { 00010 public: 00011 TEXTURE(); 00012 ~TEXTURE(); 00013 00014 bool LoadTGA(); 00015 00016 char TexName[20]; 00017 GLubyte* ImageData; // Image Data (Up To 32 Bits) 00018 GLuint Bpp; // Image Color Depth In Bits Per Pixel 00019 GLuint Width; // Image Width 00020 GLuint Height; // Image Height 00021 GLuint TexID; // Texture ID Used To Select A Texture 00022 float Vert1x; 00023 float Vert1y; 00024 float Vert2x; 00025 float Vert2y; 00026 float Vert3x; 00027 float Vert3y; 00028 }; 00029 00030 #endif 00031
1.2.15