SILLY_TGAImageLoader - Man Page

Loader for Targa image.

Synopsis

#include <SILLYTGAImageLoader.h>

Inherits ImageLoader.

Public Member Functions

void destroyContext (ImageContext *context)
Destroy the image context.
const char * getIdentifierString () const
Return the name of the loader.
ImageContext * loadHeader (PixelFormat &formatSource, DataSource *data)
Parse the header of the image and fill the header struct.
bool loadImageData (PixelOrigin origin, DataSource *data, ImageContext *context)
Parse the pixels data of the image and fill the header struct.

Detailed Description

Loader for Targa image.

Definition at line 70 of file SILLYTGAImageLoader.h.

Member Function Documentation

void destroyContext (ImageContext * context) [inherited]

Destroy the image context.

Parameters

context a pointer to the context

Definition at line 47 of file SILLYImageLoader.cpp.

ImageContext * loadHeader (PixelFormat & formatSource, DataSource * data) [virtual]

Parse the header of the image and fill the header struct.

Parameters

formatSource this var should contains the pixel format used to store the image initialy
data the input of the image data

Returns

Context for the rest of the parsing or 0 if an error occured

Implements ImageLoader.

Definition at line 74 of file SILLYTGAImageLoader.cpp.

bool loadImageData (PixelOrigin origin, DataSource * data, ImageContext * context) [virtual]

Parse the pixels data of the image and fill the header struct.

Parameters

origin the layout of the pixel in the resulting pixel array
data the input of the image data
context the data associated to the image parsing

Returns

true on success false on error

Implements ImageLoader.

Definition at line 134 of file SILLYTGAImageLoader.cpp.

Author

Generated automatically by Doxygen for Simple Image Loading LibrarY from the source code.

Info

Sat Aug 1 2020 Version 0.1.0 Simple Image Loading LibrarY