virtual Image* CreateImage(const ImageCreateInfo& info, ImageSource* source);
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 |
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. |
Returns image that matches expected protocol.