static RawImage* SF_STDCALL Create(ImageFormat format, unsigned mipLevels, const ImageSize& size, unsigned use, MemoryHeap* pheap = 0, ImageUpdateSync* pupdateSync = 0);
Create creates a new raw image of specified size, format and capabilities and is allocated in the specified memory heap.
Parameters |
Description |
ImageFormat format |
The image format to use for the data buffer. |
unsigned mipLevels |
Mipmap level for the textures. Use 0 for main (top level) textures. |
const ImageSize& size |
The desired size of the image. |
unsigned use |
The flag set as the capabilities of the image and its associated texture. See ImageUse. |
MemoryHeap* pheap = 0 |
A memory heap used for storing images. Null if this is a global heap. |
ImageUpdateSync* pupdateSync = 0 |
Pointer to the ImageUpdateSync for image updates. |
A RawImage pointer to the newly created image. This will be null if image data allocation failed.