virtual Texture* CreateTexture(ImageFormat format, unsigned mipLevels, const ImageSize& size, unsigned use, ImageBase* pimage = 0, MemoryManager* mmanager = 0) = 0;
CreateTexture creates a texture object that can be initialized with an image later.
An alternative MemoryManager can be provided in case of a RenderTarget, which may use its own memory pool/swapping strategy in Render::TargetManager.
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. |
MemoryManager* mmanager = 0 |
Memory manager for swapping support. |
A Texture pointer to the created texture, null if the texture creation failed.