Table of Contents

Class Texture3D

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

Constructors

Texture3D(GraphicsDevice, int, int, int, bool, SurfaceFormat)

public Texture3D(GraphicsDevice graphicsDevice, int width, int height, int depth, bool mipMap, SurfaceFormat format)

Parameters

graphicsDevice GraphicsDevice
width int
height int
depth int
mipMap bool
format SurfaceFormat

Texture3D(GraphicsDevice, int, int, int, bool, SurfaceFormat, bool)

protected Texture3D(GraphicsDevice graphicsDevice, int width, int height, int depth, bool mipMap, SurfaceFormat format, bool renderTarget)

Parameters

graphicsDevice GraphicsDevice
width int
height int
depth int
mipMap bool
format SurfaceFormat
renderTarget bool

Properties

Depth

public int Depth { get; }

Property Value

int

Height

public int Height { get; }

Property Value

int

Width

public int Width { get; }

Property Value

int

Methods

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

Gets a copy of 3D texture data, specifying a mipmap level, source box, start index, and number of elements.

public void GetData<T>(int level, int left, int top, int right, int bottom, int front, int back, T[] data, int startIndex, int elementCount) where T : struct

Parameters

level int

Mipmap level.

left int

Position of the left side of the box on the x-axis.

top int

Position of the top of the box on the y-axis.

right int

Position of the right side of the box on the x-axis.

bottom int

Position of the bottom of the box on the y-axis.

front int

Position of the front of the box on the z-axis.

back int

Position of the back of the box on the z-axis.

data T[]

Array of data.

startIndex int

Index of the first element to get.

elementCount int

Number of elements to get.

Type Parameters

T

The type of the elements in the array.

GetData<T>(T[])

Gets a copy of 3D texture data.

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

Parameters

data T[]

Array of data.

Type Parameters

T

The type of the elements in the array.

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

Gets a copy of 3D texture data, specifying a start index and number of elements.

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

Parameters

data T[]

Array of data.

startIndex int

Index of the first element to get.

elementCount int

Number of elements to get.

Type Parameters

T

The type of the elements in the array.

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

public void SetData<T>(int level, int left, int top, int right, int bottom, int front, int back, T[] data, int startIndex, int elementCount) where T : struct

Parameters

level int
left int
top int
right int
bottom int
front int
back int
data T[]
startIndex int
elementCount int

Type Parameters

T

SetData<T>(T[])

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

Parameters

data T[]

Type Parameters

T

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

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

Parameters

data T[]
startIndex int
elementCount int

Type Parameters

T