bool Initialize(); bool Initialize(ID3D1x(Texture2D)* ptexture);
Initialize initializes the Texture from a platform specific texture handle.
Note: If called to restore a provided texture in D3D1x after a device reset, pTexture (s) will be NULL, and the Initialize call will fail. The user must manually call Texture::Initialize with the new pointer to the new texture. This can be done for example, during a HALNotify event.
Parameters |
Description |
ID3D1x(Texture2D)* ptexture |
_nt_ |
A Boolean value of true if the textures are initialized and false if texture creation failed.