public class Cubemap extends GLTexture
Modifier and Type | Class and Description |
---|---|
static class |
Cubemap.CubemapSide
Enum to identify each side of a Cubemap
|
Constructor and Description |
---|
Cubemap()
Construct an empty Cubemap.
|
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
Pixmap s 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
Pixmap 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 specified
Pixmap 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 specified
TextureData 's for the sides |
Modifier and Type | Method and Description |
---|---|
int |
getDepth() |
int |
getHeight() |
TextureData |
getTextureData(Cubemap.CubemapSide side) |
int |
getWidth() |
boolean |
isComplete() |
boolean |
isManaged() |
void |
load(Cubemap.CubemapSide side,
FileHandle file)
Loads the texture specified using the
FileHandle and sets it to specified side, overwriting any previous data set to
that side. |
void |
load(Cubemap.CubemapSide side,
FileHandle file,
boolean useMipMaps)
Loads the texture specified using the
FileHandle and sets it to specified side, overwriting any previous data set to
that side. |
void |
load(Cubemap.CubemapSide side,
Pixmap pixmap)
Sets the specified side of this cubemap to the specified
Pixmap , overwriting any previous data set to that side. |
void |
load(Cubemap.CubemapSide side,
Pixmap pixmap,
boolean useMipMaps)
Sets the specified side of this cubemap to the specified
Pixmap , overwriting any previous data set to that side. |
void |
load(Cubemap.CubemapSide side,
TextureData data)
Sets the specified side of this cubemap to the specified
TextureData , overwriting any previous data set to that
side. |
void |
load(TextureData positiveX,
TextureData negativeX,
TextureData positiveY,
TextureData negativeY,
TextureData positiveZ,
TextureData negativeZ)
Sets the sides of this cubemap to the specified
TextureData . |
bind, bind, dispose, getMagFilter, getMinFilter, getTextureObjectHandle, getUWrap, getVWrap, setFilter, setWrap, unsafeSetFilter, unsafeSetFilter, unsafeSetWrap, unsafeSetWrap, uploadImageData
public Cubemap()
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)
Pixmap
s for the sides, does not generate mipmaps.public Cubemap(Pixmap positiveX, Pixmap negativeX, Pixmap positiveY, Pixmap negativeY, Pixmap positiveZ, Pixmap negativeZ, boolean useMipMaps)
Pixmap
s for the sides, optionally generating mipmaps.public Cubemap(int width, int height, int depth, Pixmap.Format format)
Pixmap
s 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(TextureData positiveX, TextureData negativeX, TextureData positiveY, TextureData negativeY, TextureData positiveZ, TextureData negativeZ)
TextureData
.public boolean isManaged()
public void load(Cubemap.CubemapSide side, FileHandle file)
FileHandle
and sets it to specified side, overwriting any previous data set to
that side. Does not generate mipmaps. This method binds the Cubemap to the active unit!side
- The Cubemap.CubemapSide
file
- The texture FileHandle
public void load(Cubemap.CubemapSide side, FileHandle file, boolean useMipMaps)
FileHandle
and sets it to specified side, overwriting any previous data set to
that side. This method binds the Cubemap to the active unit!side
- The Cubemap.CubemapSide
file
- The texture FileHandle
useMipMaps
- True to generate mipmaps.public void load(Cubemap.CubemapSide side, Pixmap pixmap)
Pixmap
, overwriting any previous data set to that side.
Does not generate mipmaps. This method binds the Cubemap to the active unit!side
- The Cubemap.CubemapSide
pixmap
- The Pixmap
public void load(Cubemap.CubemapSide side, Pixmap pixmap, boolean useMipMaps)
Pixmap
, overwriting any previous data set to that side.
This method binds the Cubemap to the active unit!side
- The Cubemap.CubemapSide
pixmap
- The Pixmap
useMipMaps
- True to generate mipmaps.public void load(Cubemap.CubemapSide side, TextureData data)
TextureData
, overwriting any previous data set to that
side. This method binds the Cubemap to the active unit!side
- The Cubemap.CubemapSide
data
- The TextureData
public boolean isComplete()
public TextureData getTextureData(Cubemap.CubemapSide side)
TextureData
for the specified side, can be null if the cubemap is incomplete.public int getWidth()
public int getHeight()
Copyright © 2014. All rights reserved.