Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.