Table of Contents

Class TextureCube

Namespace
Microsoft.Xna.Framework.Graphics
Assembly
MonoGame.Framework.dll
public class TextureCube : Texture, IDisposable
Inheritance
TextureCube
Implements
Derived
Inherited Members

Constructors

TextureCube(GraphicsDevice, int, bool, SurfaceFormat)

public TextureCube(GraphicsDevice graphicsDevice, int size, bool mipMap, SurfaceFormat format)

Parameters

graphicsDevice GraphicsDevice
size int
mipMap bool
format SurfaceFormat

Properties

Size

Gets the width and height of the cube map face in pixels.

public int Size { get; }

Property Value

int

The width and height of a cube map face in pixels.

Methods

GetData<T>(CubeMapFace, int, Rectangle?, T[], int, int)

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

Parameters

cubeMapFace CubeMapFace
level int
rect Rectangle?
data T[]
startIndex int
elementCount int

Type Parameters

T

GetData<T>(CubeMapFace, T[])

Gets a copy of cube texture data specifying a cubemap face.

public void GetData<T>(CubeMapFace cubeMapFace, T[] data) where T : struct

Parameters

cubeMapFace CubeMapFace

The cube map face.

data T[]

The data.

Type Parameters

T

GetData<T>(CubeMapFace, T[], int, int)

public void GetData<T>(CubeMapFace cubeMapFace, T[] data, int startIndex, int elementCount) where T : struct

Parameters

cubeMapFace CubeMapFace
data T[]
startIndex int
elementCount int

Type Parameters

T

SetData<T>(CubeMapFace, int, Rectangle?, T[], int, int)

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

Parameters

face CubeMapFace
level int
rect Rectangle?
data T[]
startIndex int
elementCount int

Type Parameters

T

SetData<T>(CubeMapFace, T[])

public void SetData<T>(CubeMapFace face, T[] data) where T : struct

Parameters

face CubeMapFace
data T[]

Type Parameters

T

SetData<T>(CubeMapFace, T[], int, int)

public void SetData<T>(CubeMapFace face, T[] data, int startIndex, int elementCount) where T : struct

Parameters

face CubeMapFace
data T[]
startIndex int
elementCount int

Type Parameters

T