ImageCreator::CreateImage

ImageCreator::CreateImage
virtual Image* CreateImage(const ImageCreateInfo& info, ImageSource* source);
Description

CreateImage is a virtual function used to create images during loading; this function can be overridden to load user defined image formats or to generate engine-specific texture objects. The default implementation uses FileOpener to open image files, supporting standard formats including DDS, TGA and JPEG.

Parameters
Parameters 
Description 
const ImageCreateInfo& info 
A ImageCreateInfo object containing information required for creating an image, including either image data or a file name. The application must examine ImageCreateInfo::Type in order to determine the mechanism of image creation. 
ImageSource* source 
A ImageSource for creating the image. 
Return Value

Returns image that matches expected protocol.