Microsoft DirectX 9.0 SDK Update (October 2004)

Texture.Texture Constructor

Language:

Note: This documentation is preliminary and is subject to change.

Creates a new instance of the Texture class.

Overload List

public Texture(Device, Bitmap, Usage, Pool);
public Texture(Device, int, int, int, Usage, Format, Pool);
public Texture(Device, Stream, Usage, Pool);
public Texture(IDirect3DTexture9);
public Texture(IDirect3DTexture9, Device, Pool);
public Texture(IntPtr);

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
InvalidCallException The method call is invalid. For example, a parameter might contain an invalid value.
OutOfVideoMemoryException Microsoft® Direct3D® does not have enough display memory to perform the operation.
OutOfMemoryException Leave Site Direct3D could not allocate sufficient memory to complete the call.

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