TextureCube.SetData<T> Method (CubeMapFace, Int32, Nullable<Rectangle>, T[], Int32, Int32)

Sets cube texture data, specifying a cubemap face, mipmap level, source rectangle, start index, and number of elements.

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

public void SetData<T>(
	CubeMapFace cubeMapFace,
	int level,
	Nullable<Rectangle> rect,
	T[] data,
	int startIndex,
	int elementCount
)
where T : struct, new()

Type Parameters

T

The type of the elements in the array.

Parameters

cubeMapFace
Type: Microsoft.Xna.Framework.Graphics.CubeMapFace
Cubemap face.
level
Type: System.Int32
Mipmap level.
rect
Type: System.Nullable<Rectangle>
Region in the texture to set the data; use null to set data to the entire texture.
data
Type: T[]
Array of data.
startIndex
Type: System.Int32
Index of the first element to set.
elementCount
Type: System.Int32
Number of elements to set.

Silverlight

Supported in: 5

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show: