public class Cubemap extends GLTexture
| Modifier and Type | Class and Description |
|---|---|
static class |
Cubemap.CubemapSide
Enum to identify each side of a Cubemap
|
| Modifier and Type | Field and Description |
|---|---|
protected CubemapData |
data |
| Constructor and Description |
|---|
Cubemap(CubemapData data)
Construct a Cubemap based on the given CubemapData.
|
Cubemap(FileHandle positiveX,
FileHandle negativeX,
FileHandle positiveY,
FileHandle negativeY,
FileHandle positiveZ,
FileHandle negativeZ)
Construct a Cubemap with the specified texture files for the sides, does not generate mipmaps.
|
Cubemap(FileHandle positiveX,
FileHandle negativeX,
FileHandle positiveY,
FileHandle negativeY,
FileHandle positiveZ,
FileHandle negativeZ,
boolean useMipMaps)
Construct a Cubemap with the specified texture files for the sides, optionally generating mipmaps.
|
Cubemap(int width,
int height,
int depth,
Pixmap.Format format)
Construct a Cubemap with
Pixmaps for each side of the specified size. |
Cubemap(Pixmap positiveX,
Pixmap negativeX,
Pixmap positiveY,
Pixmap negativeY,
Pixmap positiveZ,
Pixmap negativeZ)
Construct a Cubemap with the specified
Pixmaps 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 specified
Pixmaps for the sides, optionally generating mipmaps. |
Cubemap(TextureData positiveX,
TextureData negativeX,
TextureData positiveY,
TextureData negativeY,
TextureData positiveZ,
TextureData negativeZ)
Construct a Cubemap with the specified
TextureData's for the sides |
| Modifier and Type | Method and Description |
|---|---|
static void |
clearAllCubemaps(Application app)
Clears all managed cubemaps.
|
void |
dispose()
Disposes all resources associated with the cubemap
|
CubemapData |
getCubemapData() |
int |
getDepth() |
int |
getHeight() |
static java.lang.String |
getManagedStatus() |
static int |
getNumManagedCubemaps() |
int |
getWidth() |
static void |
invalidateAllCubemaps(Application app)
Invalidate all managed cubemaps.
|
boolean |
isManaged() |
void |
load(CubemapData data)
Sets the sides of this cubemap to the specified
CubemapData. |
protected void |
reload() |
static void |
setAssetManager(AssetManager manager)
Sets the
AssetManager. |
bind, bind, delete, getMagFilter, getMinFilter, getTextureObjectHandle, getUWrap, getVWrap, setFilter, setWrap, unsafeSetFilter, unsafeSetFilter, unsafeSetWrap, unsafeSetWrap, uploadImageData, uploadImageDataprotected CubemapData data
public Cubemap(CubemapData data)
public Cubemap(FileHandle positiveX, FileHandle negativeX, FileHandle positiveY, FileHandle negativeY, FileHandle positiveZ, FileHandle negativeZ)
public Cubemap(FileHandle positiveX, FileHandle negativeX, FileHandle positiveY, FileHandle negativeY, FileHandle positiveZ, FileHandle negativeZ, boolean useMipMaps)
public Cubemap(Pixmap positiveX, Pixmap negativeX, Pixmap positiveY, Pixmap negativeY, Pixmap positiveZ, Pixmap negativeZ)
Pixmaps for the sides, does not generate mipmaps.public Cubemap(Pixmap positiveX, Pixmap negativeX, Pixmap positiveY, Pixmap negativeY, Pixmap positiveZ, Pixmap negativeZ, boolean useMipMaps)
Pixmaps for the sides, optionally generating mipmaps.public Cubemap(int width,
int height,
int depth,
Pixmap.Format format)
Pixmaps for each side of the specified size.public Cubemap(TextureData positiveX, TextureData negativeX, TextureData positiveY, TextureData negativeY, TextureData positiveZ, TextureData negativeZ)
TextureData's for the sidespublic void load(CubemapData data)
CubemapData.public CubemapData getCubemapData()
public boolean isManaged()
public int getWidth()
public int getHeight()
public int getDepth()
public void dispose()
dispose in interface Disposabledispose in class GLTexturepublic static void clearAllCubemaps(Application app)
public static void invalidateAllCubemaps(Application app)
public static void setAssetManager(AssetManager manager)
AssetManager. When the context is lost, cubemaps managed by the asset manager are reloaded by the manager
on a separate thread (provided that a suitable AssetLoader is registered with the manager). Cubemaps not managed by
the AssetManager are reloaded via the usual means on the rendering thread.manager - the asset manager.public static java.lang.String getManagedStatus()
public static int getNumManagedCubemaps()