Main Page | Modules | Namespace List | Class Hierarchy | Compound List | File List | Compound Members | File Members

adsotexture.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * $Id: adsotexture.h,v 1.4 2003/06/27 08:36:41 schou Exp $
00003  * Author: Jakob Schou Jensen <schou@sourceforge.net>
00004  * Licence: GPL
00005  *
00006  * Description: Adso texture object
00007  *
00008  ****************************************************************************/
00009 
00010 #ifndef ADSOTEXTURE_H
00011 #define ADSOTEXTURE_H
00012 
00013 #include <adsobase.h>
00014 #include <GL/gl.h>
00015 
00017 class AdsoTexture {
00018  public:
00019   int size;
00020   int dim;
00021   GLenum format;
00022 
00023   GLubyte *array;
00024 
00025   int loadImage(char *filename, char *defaultDir);
00026   int loadBMPImage(char *filename);
00027   int loadTargaImage(char *filename);
00028   int loadBWImage(char *filename);
00029 
00030   AdsoTexture(){}
00031 };
00032 
00034 class AdsoImage {
00035  public:
00036   int width, height;
00037   GLubyte *array;
00038 
00039   int saveBMP(char *filename);
00040   
00041   AdsoImage(){array=0;}
00042 };
00043 
00044 #endif

Generated on Mon Jul 21 10:44:47 2003 for Rover by doxygen 1.3.2