public class FacedMultiCubemapData
extends java.lang.Object
implements com.badlogic.gdx.graphics.CubemapData
| Modifier and Type | Field and Description |
|---|---|
protected com.badlogic.gdx.graphics.TextureData[] |
data |
| Constructor and Description |
|---|
FacedMultiCubemapData(com.badlogic.gdx.files.FileHandle[] files,
int levels)
Construct Cubemap data for MipMap cubemap.
|
FacedMultiCubemapData(com.badlogic.gdx.graphics.Pixmap[] pixmaps,
int levels) |
| Modifier and Type | Method and Description |
|---|---|
void |
consumeCubemapData() |
int |
getHeight() |
com.badlogic.gdx.graphics.TextureData |
getTextureData(com.badlogic.gdx.graphics.Cubemap.CubemapSide side) |
int |
getWidth() |
boolean |
isComplete() |
boolean |
isManaged() |
boolean |
isPrepared() |
void |
prepare() |
public FacedMultiCubemapData(com.badlogic.gdx.files.FileHandle[] files,
int levels)
files - texture files in following order :
level 0 (positive X, negative X, positive Y, negative Y, positive Z, negative Z)
level 1 (positive X, negative X, positive Y, negative Y, positive Z, negative Z)
and so on. Where level 0 is the biggest texture. Expected levels x 6 files.levels - mipmap levelspublic FacedMultiCubemapData(com.badlogic.gdx.graphics.Pixmap[] pixmaps,
int levels)
public boolean isManaged()
isManaged in interface com.badlogic.gdx.graphics.CubemapDatapublic boolean isComplete()
public com.badlogic.gdx.graphics.TextureData getTextureData(com.badlogic.gdx.graphics.Cubemap.CubemapSide side)
TextureData for the specified side, can be null if the cubemap is incomplete.public int getWidth()
getWidth in interface com.badlogic.gdx.graphics.CubemapDatapublic int getHeight()
getHeight in interface com.badlogic.gdx.graphics.CubemapDatapublic boolean isPrepared()
isPrepared in interface com.badlogic.gdx.graphics.CubemapDatapublic void prepare()
prepare in interface com.badlogic.gdx.graphics.CubemapDatapublic void consumeCubemapData()
consumeCubemapData in interface com.badlogic.gdx.graphics.CubemapData