Class TextureCube
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
GraphicsDevicesize
intmipMap
boolformat
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
CubeMapFacelevel
intrect
Rectangle?data
T[]startIndex
intelementCount
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
CubeMapFaceThe 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
CubeMapFacedata
T[]startIndex
intelementCount
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
CubeMapFacelevel
intrect
Rectangle?data
T[]startIndex
intelementCount
int
Type Parameters
T
SetData<T>(CubeMapFace, T[])
public void SetData<T>(CubeMapFace face, T[] data) where T : struct
Parameters
face
CubeMapFacedata
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
CubeMapFacedata
T[]startIndex
intelementCount
int
Type Parameters
T