#ifndef PICTUREREADER_H
#define PICTUREREADER_H

#include "Reader.h"

class PictureReader : public Reader
{
public:
	PictureReader();
	PictureReader(char* path);
	virtual		~PictureReader();

	int			getColorBitDepth()	{	return processed ? bitsPerPixel : 0;	}
	int			getHeight()			{	return processed ? height : 0;	}
	int			getWidth()			{	return processed ? width : 0;	}
	bool		setBitsPerPixel( char depth );
	void*		getPic();

	bool		process();

private:
	int			width, 
				height,
				bitsPerPixel;
	char*		picPtr;

	void		processTGA();
};

#endif

