Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library

TextureCreationParameters Constructor

Note
This constructor is available only when developing for Windows.
Creates a new instance of TextureCreationParameters.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

public TextureCreationParameters (
         int width,
         int height,
         int depth,
         int mipLevels,
         SurfaceFormat format,
         ResourceUsage resourceUsage,
         ResourceManagementMode resourceManagementMode,
         Color colorKey,
         FilterOptions filter,
         FilterOptions mipFilter
)

Parameters

width
Width of the texture.
height
Height of the texture.
depth
Depth of the texture.
mipLevels
Number of mip levels in the texture.
format
The format of the texture.
resourceUsage
A set of options identifying the behaviors of this texture resource. If resourceManagementMode is ResourceManagementMode.Automatic, this value cannot be ResourceUsage.Dynamic.
resourceManagementMode
The memory pool to hold the buffers for this texture resource. If this value is ResourceManagementMode.Automatic, the runtime will recreate the resource when the graphics device is reset. If this value is ResourceManagementMode.Manual, this resource should be re-initialized when the graphics device is reset.
colorKey
The color key of the texture.
filter
A set of options controlling how the image is filtered.
mipFilter
A set of options controlling how mipmaps are filtered.

Windows XP SP2, Windows Vista

Show:
© 2015 Microsoft