#ifndef _IMAGE_H

#define _IMAGE_H


/*
 * Image Class definition
 */

#include "main.h"


#include <il/il.h>

#include <il/ilu.h>


class Image
{
private:
	ILuint id;
	char tmp_dir[ PATH_MAX +1];
	char t_tag[32];
	char m_tag[32];
	int tw;
	int th;
	int mw;
	int mh;
	char **img_list;
	int img_count;
	char separator[2]; 
	char base[PATH_MAX + 1];


public:
       Image();
       Image( char** list, int count );
       Image( char** list, int count , int tw, int th, int mw, int mh );
       ~Image();
       void setBase( char *_base); 
       void setSize( int tw, int th, int mw, int mh );
       void cleanUp();
       void process();

private:
	void init();
	void init_il();
	void processOne( char *img );
	
	int getHeight( int w, int h, int type);
	int getWidth( int w, int h, int type);
	void resolvePath(char *path , char *name ); 

};

#endif /* _IMAGE_H */



syntax highlighted by Code2HTML, v. 0.9