Class FacedMultiCubemapData
java.lang.Object
gaiasky.util.gdx.model.gltf.scene3d.utils.FacedMultiCubemapData
- All Implemented Interfaces:
com.badlogic.gdx.graphics.CubemapData
-
Field Summary
-
Constructor Summary
ConstructorDescriptionFacedMultiCubemapData
(com.badlogic.gdx.files.FileHandle[] files, int levels) Construct Cubemap data for MipMap cubemap.FacedMultiCubemapData
(com.badlogic.gdx.graphics.Pixmap[] pixmaps, int levels) -
Method Summary
Modifier and TypeMethodDescriptionvoid
int
com.badlogic.gdx.graphics.TextureData
getTextureData
(com.badlogic.gdx.graphics.Cubemap.CubemapSide side) int
getWidth()
boolean
boolean
boolean
void
prepare()
-
Field Details
-
data
protected final com.badlogic.gdx.graphics.TextureData[] data
-
-
Constructor Details
-
FacedMultiCubemapData
public FacedMultiCubemapData(com.badlogic.gdx.files.FileHandle[] files, int levels) Construct Cubemap data for MipMap cubemap.- Parameters:
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 levels
-
FacedMultiCubemapData
public FacedMultiCubemapData(com.badlogic.gdx.graphics.Pixmap[] pixmaps, int levels)
-
-
Method Details
-
isManaged
public boolean isManaged()- Specified by:
isManaged
in interfacecom.badlogic.gdx.graphics.CubemapData
-
isComplete
public boolean isComplete()- Returns:
- True if all sides of this cubemap are set, false otherwise.
-
getTextureData
public com.badlogic.gdx.graphics.TextureData getTextureData(com.badlogic.gdx.graphics.Cubemap.CubemapSide side) - Returns:
- The
TextureData
for the specified side, can be null if the cubemap is incomplete.
-
getWidth
public int getWidth()- Specified by:
getWidth
in interfacecom.badlogic.gdx.graphics.CubemapData
-
getHeight
public int getHeight()- Specified by:
getHeight
in interfacecom.badlogic.gdx.graphics.CubemapData
-
isPrepared
public boolean isPrepared()- Specified by:
isPrepared
in interfacecom.badlogic.gdx.graphics.CubemapData
-
prepare
public void prepare()- Specified by:
prepare
in interfacecom.badlogic.gdx.graphics.CubemapData
-
consumeCubemapData
public void consumeCubemapData()- Specified by:
consumeCubemapData
in interfacecom.badlogic.gdx.graphics.CubemapData
-