public class ObjGltfAssetCreatorV1
extends java.lang.Object
GltfAssetV1 objects from OBJ files| Constructor and Description |
|---|
ObjGltfAssetCreatorV1()
Default constructor
|
ObjGltfAssetCreatorV1(BufferStrategy bufferStrategy)
Creates a new glTF model creator
|
| Modifier and Type | Method and Description |
|---|---|
GltfAssetV1 |
create(java.net.URI objUri)
Create a
GltfAssetV1 from the OBJ file with the given URI |
void |
setAssigningRandomColorsToParts(boolean assigningRandomColorsToParts)
For testing and debugging: Assign random colors to the parts that
are created when splitting the OBJ data
|
void |
setBufferStrategy(BufferStrategy bufferStrategy)
Set the
BufferStrategy to use |
void |
setIndicesComponentType(int indicesComponentType)
Set the component type for the indices of the
MeshPrimitives |
public ObjGltfAssetCreatorV1()
public ObjGltfAssetCreatorV1(BufferStrategy bufferStrategy)
bufferStrategy - The BufferStrategy to usepublic void setBufferStrategy(BufferStrategy bufferStrategy)
BufferStrategy to usebufferStrategy - The BufferStrategypublic void setIndicesComponentType(int indicesComponentType)
MeshPrimitivesindicesComponentType - The component typejava.lang.IllegalArgumentException - If the given type is not
GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT or GL_UNSIGNED_INTpublic void setAssigningRandomColorsToParts(boolean assigningRandomColorsToParts)
assigningRandomColorsToParts - The flagpublic GltfAssetV1 create(java.net.URI objUri) throws java.io.IOException
GltfAssetV1 from the OBJ file with the given URIobjUri - The OBJ URIGltfAssetV1java.io.IOException - If an IO error occursCopyright © 2022. All Rights Reserved.