00001 00006 #ifndef __TEXTURE_H__ 00007 #define __TEXTURE_H__ 00008 00009 #include <stdio.h> 00010 #ifdef __APPLE__ 00011 #include <OpenGL/gl.h> 00012 #else 00013 #include <GL/glut.h> 00014 #endif 00015 00016 /* 00017 * The idea of this way of creating a Texture came from Alex Kamisky. 00018 * It has been changed to fit into this ParticleSystem implementation. 00019 * @author Hannes Ricklefs 00020 */ 00021 00023 00026 typedef struct 00027 { 00031 GLubyte * imageData; 00035 GLuint bpp; 00039 GLuint width; 00043 GLuint height; 00047 GLuint texID; 00051 GLuint type; 00052 } Texture; 00053 00054 #endif 00055