|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectMicrosoft.Xna.Framework.Graphics.GraphicsResource
Microsoft.Xna.Framework.Graphics.Texture
Microsoft.Xna.Framework.Graphics.TextureCube
public class TextureCube
Represents a set of six 2D textures, one for each face of a cube.
Field Summary |
---|
Fields inherited from class Microsoft.Xna.Framework.Graphics.GraphicsResource |
---|
_parent, Disposing, Name, Tag |
Constructor Summary | |
---|---|
TextureCube(GraphicsDevice graphicsDevice,
int size,
boolean mipMap,
SurfaceFormat format)
Creates a new instance of this Object. |
Method Summary | ||
---|---|---|
protected void |
Dispose(boolean disposing)
Immediately releases the unmanaged resources used by this Object. |
|
protected void |
finalize()
Allows this Object to attempt to free resources and perform other cleanup operations before garbage collection reclaims the object. |
|
|
GetData(CubeMapFace cubeMapFace,
int level,
Rectangle rect,
T[] data,
int startIndex,
int elementCount)
|
|
|
GetData(CubeMapFace cubeMapFace,
T[] data)
|
|
|
GetData(CubeMapFace cubeMapFace,
T[] data,
int startIndex,
int elementCount)
|
|
|
SetData(CubeMapFace cubeMapFace,
int level,
Rectangle rect,
T[] data,
int startIndex,
int elementCount)
Sets cube texture data, specifying a cubemap face, mipmap level, source rectangle, start index, and number of elements. |
|
|
SetData(CubeMapFace cubeMapFace,
T[] data)
Sets cube texture data, specifying a cubemap face. |
|
|
SetData(CubeMapFace cubeMapFace,
T[] data,
int startIndex,
int elementCount)
Sets cube texture data, specifying a cubemap face, start index, and number of elements. |
|
int |
Size()
|
Methods inherited from class Microsoft.Xna.Framework.Graphics.Texture |
---|
Format, LevelCount |
Methods inherited from class Microsoft.Xna.Framework.Graphics.GraphicsResource |
---|
Dispose, GraphicsDevice, IsDisposed, raise_disposing, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TextureCube(GraphicsDevice graphicsDevice, int size, boolean mipMap, SurfaceFormat format)
graphicsDevice
- The device.size
- The size (in pixels) of the top-level faces of the cube texture. Subsequent levels of each face will be the truncated value of half of the previous level's pixel dimension (independently). Each dimension is clamped to a minimum of 1 pixel.mipMap
- True to generate a full mipmap chain, false otherwise.format
- Surface data format.
NotSupportedException
Method Detail |
---|
public int Size()
protected void Dispose(boolean disposing)
GraphicsResource
Dispose
in class GraphicsResource
protected void finalize()
GraphicsResource
finalize
in class GraphicsResource
public <T extends java.lang.Number> void GetData(CubeMapFace cubeMapFace, T[] data)
T
- cubeMapFace
- data
-
ArgumentNullException
public <T extends java.lang.Number> void GetData(CubeMapFace cubeMapFace, T[] data, int startIndex, int elementCount)
T
- cubeMapFace
- data
- startIndex
- elementCount
-
ArgumentNullException
public <T extends java.lang.Number> void GetData(CubeMapFace cubeMapFace, int level, Rectangle rect, T[] data, int startIndex, int elementCount)
T
- cubeMapFace
- level
- rect
- data
- startIndex
- elementCount
-
ArgumentNullException
public <T extends java.lang.Number> void SetData(CubeMapFace cubeMapFace, T[] data)
T
- cubeMapFace
- data
-
ArgumentNullException
public <T extends java.lang.Number> void SetData(CubeMapFace cubeMapFace, T[] data, int startIndex, int elementCount)
T
- cubeMapFace
- data
- startIndex
- elementCount
-
ArgumentNullException
public <T extends java.lang.Number> void SetData(CubeMapFace cubeMapFace, int level, Rectangle rect, T[] data, int startIndex, int elementCount)
T
- cubeMapFace
- level
- rect
- data
- startIndex
- elementCount
-
ArgumentNullException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |