Share via


TextureCube.SetData Generic 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.

Syntax

'Declaration
Public Sub SetData(Of T As ValueType) ( _
         cubeMapFace As CubeMapFace, _
         level As Integer, _
         rect As Nullable(Of Rectangle), _
         data As T(), _
         startIndex As Integer, _
         elementCount As Integer _
)
public void SetData<T> (
         CubeMapFace cubeMapFace,
         int level,
         Nullable<Rectangle> rect,
         T[] data,
         int startIndex,
         int elementCount
) where T : ValueType
public:
generic<typename T> where T : ValueType
void SetData(
         CubeMapFace cubeMapFace,
         int level,
         Nullable<Rectangle> rect,
         T data[],
         int startIndex,
         int elementCount
)

Type Parameters

  • T
    The type of the elements in the array.

Parameters

  • cubeMapFace
    Type: CubeMapFace
    Cubemap face.
  • level
    Type: Int32
    Mipmap level.
  • rect
    Type: 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: Int32
    Index of the first element to set.
  • elementCount
    Type: Int32
    Number of elements to set.

Requirements

Namespace: Microsoft.Xna.Framework.Graphics

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

See Also

TextureCube Class
TextureCube Members
Microsoft.Xna.Framework.Graphics Namespace

Platforms

Windows Phone