imagelib.h

Go to the documentation of this file.
00001 
00005 /*
00006 Copyright (C) 1997-2001 Id Software, Inc.
00007 
00008 This program is free software; you can redistribute it and/or
00009 modify it under the terms of the GNU General Public License
00010 as published by the Free Software Foundation; either version 2
00011 of the License, or (at your option) any later version.
00012 
00013 This program is distributed in the hope that it will be useful,
00014 but WITHOUT ANY WARRANTY; without even the implied warranty of
00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00016 
00017 See the GNU General Public License for more details.
00018 
00019 You should have received a copy of the GNU General Public License
00020 along with this program; if not, write to the Free Software
00021 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00022 
00023 */
00024 
00025 #ifndef _IMAGELIB_HEADER_H
00026 #define _IMAGELIB_HEADER_H
00027 
00028 /*==============================================================================
00029 JPEG
00030 ==============================================================================*/
00031 
00032 int TryLoadJPG(const char *path, miptex_t **mt);
00033 
00034 /*==============================================================================
00035 Targa header structure, encapsulates only the header.
00036 ==============================================================================*/
00037 typedef struct targa_header_s {
00038     unsigned char id_length;
00039     unsigned char colormap_type;
00040     unsigned char image_type;
00041     unsigned short colormap_index;
00042     unsigned short colormap_length;
00043     unsigned char colormap_size;
00044     unsigned short x_origin;
00045     unsigned short y_origin;
00046     unsigned short width;
00047     unsigned short height;
00048     unsigned char pixel_size;
00049     unsigned char attributes;
00050 } targa_header_t;
00051 
00052 int TryLoadTGA(const char *path, miptex_t **mt);
00053 
00054 int TryLoadPNG(const char *path, miptex_t **mt);
00055 
00056 #endif /* _IMAGELIB_HEADER_H */

Generated by  doxygen 1.6.2