00001 /* 00002 Debris - A 3D-Space-Shooter Game based on OpenGL 00003 Copyright (C) 2002 Daniel Wagner <daniel@kwaxi.org> and 00004 Sebastian Zambal <e9826978@student.tuwien.ac.at> 00005 00006 file: DTextures.h 00007 */ 00008 00009 #pragma once 00010 00011 #include "DObject.h" 00012 #include "debris.h" 00013 00015 00018 class DTexData:DObject { 00019 public: 00021 GLuint texName; 00023 GLuint width; 00025 GLuint height; 00027 GLubyte *image; 00029 char *name; 00030 }; 00031 00033 00036 class DTextures:DObject { 00037 private: 00038 00039 public: 00041 DTexData *tex; 00043 int counter; 00044 00046 DTextures(void); 00048 ~DTextures(void); 00050 void LoadTGA(char *fileName, DTexData &texture); 00052 int LoadTexture(char *fileName); 00053 };