Package arc.graphics
Class Cubemap
java.lang.Object
arc.graphics.GLTexture
arc.graphics.Cubemap
- All Implemented Interfaces:
Disposable
Wraps a standard OpenGL ES Cubemap. Must be disposed when it is no longer used.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Enum to identify each side of a Cubemap -
Field Summary
-
Constructor Summary
ConstructorDescriptionCubemap
(int width, int height, int depth) Construct a Cubemap withPixmap
s for each side of the specified size.Construct a Cubemap with the specified texture files for the sides, does not generate mipmaps.Cubemap
(Fi positiveX, Fi negativeX, Fi positiveY, Fi negativeY, Fi positiveZ, Fi negativeZ, boolean useMipMaps) Construct a Cubemap with the specified texture files for the sides, optionally generating mipmaps.Cubemap
(CubemapData data) Construct a Cubemap based on the given CubemapData.Cubemap
(Pixmap positiveX, Pixmap negativeX, Pixmap positiveY, Pixmap negativeY, Pixmap positiveZ, Pixmap negativeZ) Construct a Cubemap with the specifiedPixmap
s for the sides, does not generate mipmaps.Cubemap
(Pixmap positiveX, Pixmap negativeX, Pixmap positiveY, Pixmap negativeY, Pixmap positiveZ, Pixmap negativeZ, boolean useMipMaps) Construct a Cubemap with the specifiedPixmap
s for the sides, optionally generating mipmaps.Cubemap
(TextureData positiveX, TextureData negativeX, TextureData positiveY, TextureData negativeY, TextureData positiveZ, TextureData negativeZ) Construct a Cubemap with the specifiedTextureData
's for the sides -
Method Summary
Modifier and TypeMethodDescriptionint
getDepth()
void
load
(CubemapData data) Sets the sides of this cubemap to the specifiedCubemapData
.Methods inherited from class arc.graphics.GLTexture
bind, bind, dispose, getMagFilter, getMinFilter, getTextureObjectHandle, getUWrap, getVWrap, setFilter, setFilter, setWrap, setWrap, unsafeSetFilter, unsafeSetFilter, unsafeSetWrap, unsafeSetWrap, uploadImageData, uploadImageData
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface arc.util.Disposable
isDisposed
-
Field Details
-
data
-
-
Constructor Details
-
Cubemap
Construct a Cubemap based on the given CubemapData. -
Cubemap
-
Cubemap
Construct a Cubemap with the specified texture files for the sides, does not generate mipmaps. -
Cubemap
public Cubemap(Fi positiveX, Fi negativeX, Fi positiveY, Fi negativeY, Fi positiveZ, Fi negativeZ, boolean useMipMaps) Construct a Cubemap with the specified texture files for the sides, optionally generating mipmaps. -
Cubemap
public Cubemap(Pixmap positiveX, Pixmap negativeX, Pixmap positiveY, Pixmap negativeY, Pixmap positiveZ, Pixmap negativeZ) Construct a Cubemap with the specifiedPixmap
s for the sides, does not generate mipmaps. -
Cubemap
public Cubemap(Pixmap positiveX, Pixmap negativeX, Pixmap positiveY, Pixmap negativeY, Pixmap positiveZ, Pixmap negativeZ, boolean useMipMaps) Construct a Cubemap with the specifiedPixmap
s for the sides, optionally generating mipmaps. -
Cubemap
public Cubemap(int width, int height, int depth) Construct a Cubemap withPixmap
s for each side of the specified size. -
Cubemap
public Cubemap(TextureData positiveX, TextureData negativeX, TextureData positiveY, TextureData negativeY, TextureData positiveZ, TextureData negativeZ) Construct a Cubemap with the specifiedTextureData
's for the sides
-
-
Method Details
-
load
Sets the sides of this cubemap to the specifiedCubemapData
. -
getCubemapData
-
getDepth
public int getDepth()
-