Surface provider that can load targa (.tga) files. More...

#include <targa_provider.h>

Static Public Member Functions

static PixelBuffer load (const std::string &filename, const FileSystem &fs, bool srgb=false)
 Called to load an image with this provider type. More...
 
static PixelBuffer load (const std::string &fullname, bool srgb=false)
 
static PixelBuffer load (IODevice &file, bool srgb=false)
 
static void save (PixelBuffer buffer, const std::string &filename, FileSystem &fs)
 
static void save (PixelBuffer buffer, const std::string &fullname)
 
static void save (PixelBuffer buffer, IODevice &file)
 

Detailed Description

Surface provider that can load targa (.tga) files.

Member Function Documentation

static PixelBuffer clan::TargaProvider::load ( const std::string filename,
const FileSystem fs,
bool  srgb = false 
)
static

Called to load an image with this provider type.

Parameters
nameName of the file to load.
directoryDirectory that file name is relative to.
static PixelBuffer clan::TargaProvider::load ( const std::string fullname,
bool  srgb = false 
)
static
static PixelBuffer clan::TargaProvider::load ( IODevice file,
bool  srgb = false 
)
static
static void clan::TargaProvider::save ( PixelBuffer  buffer,
const std::string filename,
FileSystem fs 
)
static
static void clan::TargaProvider::save ( PixelBuffer  buffer,
const std::string fullname 
)
static
static void clan::TargaProvider::save ( PixelBuffer  buffer,
IODevice file 
)
static

The documentation for this class was generated from the following file: