bool Initialize(); bool Initialize(IDirect3DTexture9* ptexture);
Initialize initializes the Texture from a platform specific texture handle.
Note: If called to restore a provided texture in D3D9 after a device reset, pTexture 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 |
IDirect3DTexture9* ptexture |
A platform-specific texture handle. |
A Boolean value of true if the textures are initialized and false if texture creation failed.