virtual Render::Texture* CreateTexture(ImageFormat format, unsigned mipLevels, const ImageSize& size, unsigned use, ImageBase* pimage = 0, Render::MemoryManager* manager = 0);
CreateTexture creates a texture object from a platform specific texture handle, which has already been allocated by the user.
|
Parameters |
Description |
|
ImageFormat format |
The format of the image, See ImageFormat. |
|
unsigned mipLevels |
Mipmap level of the texture. |
|
const ImageSize& size |
The size of the image. |
|
unsigned use |
Sets the texture usage capabilities passed to the renderer. |
|
ImageBase* pimage = 0 |
Pointer to the image content used to initialize texture data. |
|
Render::MemoryManager* manager = 0 |
Memory manager for swapping support. |
A Texture pointer to the created texture, null if texture creation failed.