Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

TextureCube Class

Represents a set of six 2D textures, one for each face of a cube.

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

public class TextureCube : Texture

A texel represents the smallest unit of a texture that can be read from or written to by the GPU. A texel is composed of 1 to 4 components. Specifically, a texel may be any one of the available texture formats represented in the SurfaceFormat enumeration.

A cube texture is a collection of six textures, one for each face of the cube. All faces must be present in the cube texture. Also, a cube map surface must be the same pixel size in all three dimensions (x, y, and z). Figure 1 shows a fully populated texture cube.

Figure 1.  TextureCube Resource Architecture

Bb199352.textureCube(en-us,XNAGameStudio.40).png
Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone 7
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.