bool Initialize(ImageFormat format, unsigned mipLevels, bool separateMipmaps = false);
Initialize initializes the ImageData object to accommodate the specified image format and number of mipmaps. If separateMipmaps is specified, stores all mipmaps in a single raw data plane.
Parameters |
Description |
ImageFormat format |
The format of the image. See ImageFormat. |
unsigned mipLevels |
The number of mipmap levels in the image. |
bool separateMipmaps = false |
A Boolean flag to indicate whether to store all mipmaps in a single raw data plane or not. |