Texture.Texture Constructor
Language: Visual Basic .NET C# Managed C++ JScript .NET (Show All)
Note: This documentation is preliminary and is subject to change.
Creates a new instance of the Texture class.
Definition
Visual Basic .NET
Public Sub New ( _ ByVal unmanagedObject As IntPtr _ )
C#
public Texture ( IntPtr unmanagedObject );
Managed C++
public: Texture ( IntPtr unmanagedObject );
JScript .NET
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.
See Also
© 2004 Microsoft Corporation. All rights reserved. Terms of use.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center