Main Page   Namespace List   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

/cygdrive/d/Eigene Dateien/!DProcs/code_gen/tga.h

Go to the documentation of this file.
00001 /*
00002    This program is free software; you can redistribute it and/or
00003    modify it under the terms of the GNU General Public License
00004    as published by the Free Software Foundation; either version 2
00005    of the License, or (at your option) any later version.
00006 
00007    This program is distributed in the hope that it will be useful,
00008    but WITHOUT ANY WARRANTY; without even the implied warranty of
00009    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00010    GNU General Public License for more details.
00011 
00012    You should have received a copy of the GNU General Public License
00013    along with this program; if not, write to the Free Software
00014    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00015 
00016    See gpl.txt for more information regarding the GNU General Public License.
00017 
00018    See descr.txt for more information about this demo.  
00019 */
00020 
00021 /* Error Codes */
00022 #define TGA_FILE_NOT_FOUND 13 /* file was not found */
00023 #define TGA_BAD_IMAGE_TYPE 14 /* color mapped image or image is not uncompressed */
00024 #define TGA_BAD_DIMENSION   15 /* dimension is not a power of 2 */
00025 #define TGA_BAD_BITS       16 /* image bits is not 8, 24 or 32 */
00026 #define TGA_BAD_DATA       17 /* image data could not be loaded */
00027 
00028 int loadTGA (char *name, int id); /* id is the texture id to bind too */
00029 
00030 /* creates a texture from given tga file */
00031 unsigned int createTexture( char  *  filename );
00032 

Generated on Thu Mar 18 18:33:48 2004 for miniQT by doxygen1.2.18