ImageData::Initialize

ImageData::Initialize
void Initialize(ImageFormat format, unsigned mipLevels, ImagePlane* pplanes, unsigned planeCount, bool separateMipmaps = false);
Description

Initialize initializes the ImageData object to the specified image format and number of mipmaps, while also initializing it to use pre-allocated raw data planes. User is responsible for the lifetime of pplanes buffer, as Initialize does not copy or free it.

Parameters
Parameters 
Description 
ImageFormat format 
The format of the image data. 
unsigned mipLevels 
The number of mipmap levels. 
ImagePlane* pplanes 
Pointer to pre-allocated data planes. 
unsigned planeCount 
The number of planes allocated by the user. 
bool separateMipmaps = false 
Boolean flag to indicate whether to store all mipmaps in a single raw data plane or not.