Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

texture.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           texture.h  -  description
00003                              -------------------
00004     begin                : Fri Sep 7 2001
00005     copyright            : (C) 2001 by T Kontkanen
00006     email                : tkontkanen@mail.com
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef TEXTURE_H
00019 #define TEXTURE_H
00020 
00021 #include "allincludes.h"
00022 #include "GL/gl.h"
00023 #include "GL/glpng.h"
00024 
00029 enum AlphaModes { BLEND_SOLID, BLEND_ALPHA, BLEND_STENCIL, BLEND_RGBDIST, BLEND_RGB };
00030 
00031 class Texture {
00032 public:
00034     Texture( const char *texturefile, enum AlphaModes alpha, bool mipmap, int minfilter, int magfilter, int wrapmode );
00035     ~Texture();
00036     
00038     int width() { return twidth; }
00040     int height() { return theight; }
00042     GLint getTextureID() { return texture_id; }
00044     const char *getFilename() { return filename; }
00046     bool isSameFile( const char *fname );
00047     
00048 private:
00049     GLint texture_id;
00050     int twidth, theight;
00051     const char *filename;
00052 };
00053 
00054 #endif

Generated at Fri Oct 5 20:23:52 2001 for Executor by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001