#ifndef __C_IMAGE_LOADER_PPM_H_INCLUDED__
#define __C_IMAGE_LOADER_PPM_H_INCLUDED__
#include "IrrCompileConfig.h"
#ifdef _IRR_COMPILE_WITH_PPM_LOADER_
#include "IImageLoader.h"
#include "irrString.h"
namespace irr
{
namespace video
{
class CImageLoaderPPM : public IImageLoader
{
public:
CImageLoaderPPM();
virtual bool isALoadableFileExtension(const io::path& filename) const;
virtual bool isALoadableFileFormat(io::IReadFile* file) const;
virtual IImage* loadImage(io::IReadFile* file) const;
private:
void getNextToken(io::IReadFile* file, core::stringc& token) const;
void skipToNextToken(io::IReadFile* file) const;
};
}
}
#endif
#endif