Texture(TextureManagerLocks* pmanagerLocks, const TextureFormat* pformat, unsigned mipLevels, const ImageSize& size, unsigned use, ImageBase* pimage); Texture(TextureManagerLocks* pmanagerLocks, GLuint texID, bool deleteTexture, const ImageSize& size, ImageBase* pimage); Texture(TextureManagerLocks* pmanagerLocks, HALGLTexture* texID, const ImageSize& size, ImageBase* pimage);
Texture constructor.
Parameters |
Description |
TextureManagerLocks* pmanagerLocks |
Pointer to the TextureManagerLocks for proper synchronization of Texture objects on different threads. |
const TextureFormat* pformat |
The texture object with its usage capabilities. |
unsigned mipLevels |
The number of mipmap levels to create, with 0 indicating no mipmaps. |
const ImageSize& size |
The size of the updateable texture in pixels. |
unsigned use |
The texture capabilities passed to the renderer. |
ImageBase* pimage |
Pointer to the image pixel data and size information used to create a texture. |
GLuint texID |
The texture Id. |
bool deleteTexture |
Whether the texture manager will free the texture when it is destroyed. Otherwise, the user is required to delete the texture. |