ImageData(); ImageData(const ImageData& other); ImageData(ImageFormat format, unsigned mipLevelCount = 1, bool separateMipmaps = false); ImageData(ImageFormat format, UInt32 width, UInt32 height, UPInt pitch, UByte* pdata = 0);
Initializes ImageData with the specified values.
Parameters |
Description |
ImageFormat format |
The format of the image. See ImageFormat. |
unsigned mipLevelCount = 1 |
The number of mipmap levels. |
bool separateMipmaps = false |
A Boolean flag to indicate whether the mipmap levels have separately allocated planes. |
UInt32 width |
Desired width of the image in pixels. |
UInt32 height |
Desired height of the image in pixels. |
UPInt pitch |
The pitch of the image. |
UByte* pdata = 0 |
Pointer to the first byte of the image data in memory. |