Texture(TextureManagerLocks* pmanagerLocks, const TextureFormat* pformat, unsigned mipLevels, const ImageSize& size, unsigned use, ImageBase* pimage); Texture(TextureManagerLocks* pmanagerLocks, ID3D1x(Texture2D)* ptexture, ImageSize imgSize, 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 format. |
unsigned mipLevels |
The number of mipmap levels to create, with 0 indicating no mipmaps. A value of 1 would create a full-size level 0 texture with one additional half-size mipmap. |
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. |
ID3D1x(Texture2D)* ptexture |
Pointer to an array of 2D textures. |