// $Source: /usr/local/SimSoft/SoftShop/XGraph/Space/ReadImag.h,v $
// $Revision: 1.9 $
// $Author: baum $
// $Date: 2001/11/29 15:52:24 $
//
// Login name of the user who locked the revision
// $Locker:  $
// Tag name used to checkout the file
// $Name: Release-20 $
// State assigned to revision
// $State: Exp $
//
//
// $Log: ReadImag.h,v $
// Revision 1.9  2001/11/29 15:52:24  baum
// -In Kalender.cpp und Kalender.h Handsteuerung eingebaut
//

#ifndef _IMAGE_H
#define _IMAGE_H  1


//==================================================================
//		functions
//		for reading textures
//==================================================================
/*
 * read_texture() - read in an image file in SGI 'libimage' format
 * 	currently its very simple minded and converts all images
 *      to RGBA8 regardless of the input format and returns the
 *	original number of components in the appropriate parameter.
 *    
 *     
 *	the components are converted as follows
 *		L    -> LLL 1.0
 *		LA   -> LLL A
 *		RGB  -> RGB 1.0
 *		RGBA -> RGB A
 *
 * read_sgi() - read in an image file in SGI 'libimage' format
 *      same as above, but doesn't do any conversion to RGBA8.
 *      so read as it is!!!
 *
 */

unsigned*      read_texture (char *name, int *width, int *height, int *components);

unsigned char* read_sgi     (char *name, int *width, int *height, int *components);

unsigned char* read_tga     (char *name, int *width, int *height, int *components);

unsigned char* read_bmp     (char *name, int *width, int *height, int *components);
#ifdef __WIN32__
unsigned char* read_jpeg    (char *name, int *width, int *height, int *components);

unsigned char* read_png     (char *name, int *width, int *height, int *components);
#endif

#endif // !_IMAGE_H
