Texture.Texture(IntPtr) Constructor (Microsoft.DirectX.Direct3D)
Creates a new instance of the Texture class.
Definition
Visual Basic Public Sub New( _
ByVal unmanagedObject As IntPtr _
)C# public Texture(
IntPtr unmanagedObject
);C++ public:
Texture(
IntPtr unmanagedObject
);JScript public function Texture(
unmanagedObject : IntPtr
);
Parameters
unmanagedObject System.IntPtr
Pointer to an unmanaged Component Object Model (COM) IDirect3DTexture9 interface. This parameter is useful for working with unmanaged applications from managed code. Not supported.
Remarks
An application can discover support for automatic generation of mipmaps in a particular format by calling Manager.CheckDeviceFormat with Usage.AutoGenerateMipMap. If Manager.CheckDeviceFormat returns false, the Texture constructor succeeds, but returns a single-level texture.
Exceptions
The method call is invalid. For example, a parameter might contain an invalid value.
Microsoft Direct3D does not have enough display memory to perform the operation.
Direct3D could not allocate sufficient memory to complete the call.
See Also