public class GLTFExporter
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
textureFileIndex
current texture file index
|
| Constructor and Description |
|---|
GLTFExporter()
create with default config.
|
GLTFExporter(GLTFExporterConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
export(com.badlogic.gdx.utils.Array<Scene> scenes,
Scene defaultScene,
com.badlogic.gdx.files.FileHandle file)
multi scene export
|
void |
export(com.badlogic.gdx.utils.Array<SceneModel> scenes,
SceneModel defaultScene,
com.badlogic.gdx.files.FileHandle file)
multi scene export
|
void |
export(com.badlogic.gdx.graphics.Mesh mesh,
int primitiveType,
com.badlogic.gdx.files.FileHandle file)
convenient method to export a single mesh
primitiveType can be any of OpenGL primitive:
GL20.GL_POINTS,
GL20.GL_LINES,
GL20.GL_LINE_STRIP,
GL20.GL_TRIANGLES,
GL20.GL_TRIANGLE_STRIP,
GL20.GL_TRIANGLE_FAN,
etc.. |
void |
export(com.badlogic.gdx.graphics.g3d.Model model,
com.badlogic.gdx.files.FileHandle file)
convenient method to export a single model
|
void |
export(SceneAsset asset,
com.badlogic.gdx.files.FileHandle file)
multi scene export
|
void |
export(Scene scene,
com.badlogic.gdx.files.FileHandle file)
convenient method to export a single scene
|
void |
export(SceneModel scene,
com.badlogic.gdx.files.FileHandle file)
convenient method to export a single scene
|
protected java.lang.String |
getImageName(com.badlogic.gdx.graphics.Texture texture)
sub class may override this method in order to implement some custom name mapping.
|
public GLTFExporter()
public GLTFExporter(GLTFExporterConfig config)
protected java.lang.String getImageName(com.badlogic.gdx.graphics.Texture texture)
texture - public void export(com.badlogic.gdx.graphics.Mesh mesh,
int primitiveType,
com.badlogic.gdx.files.FileHandle file)
GL20.GL_POINTS,
GL20.GL_LINES,
GL20.GL_LINE_STRIP,
GL20.GL_TRIANGLES,
GL20.GL_TRIANGLE_STRIP,
GL20.GL_TRIANGLE_FAN,
etc..public void export(com.badlogic.gdx.graphics.g3d.Model model,
com.badlogic.gdx.files.FileHandle file)
public void export(Scene scene, com.badlogic.gdx.files.FileHandle file)
public void export(SceneModel scene, com.badlogic.gdx.files.FileHandle file)
public void export(SceneAsset asset, com.badlogic.gdx.files.FileHandle file)
public void export(com.badlogic.gdx.utils.Array<SceneModel> scenes, SceneModel defaultScene, com.badlogic.gdx.files.FileHandle file)