Package | Description |
---|---|
com.badlogic.gdx.graphics.g3d | |
com.badlogic.gdx.graphics.g3d.model | |
com.badlogic.gdx.graphics.g3d.utils |
Modifier and Type | Field and Description |
---|---|
Material |
Renderable.material
the
Material to be applied to the mesh |
Modifier and Type | Field and Description |
---|---|
Array<Material> |
Model.materials
the materials of the model, used by nodes that have a graphical representation FIXME not sure if superfluous, allows modification of materials without having to traverse the nodes
|
Array<Material> |
ModelInstance.materials
the materials of the model, used by nodes that have a graphical representation FIXME not sure if superfluous, allows modification of materials without having to traverse the nodes
|
Modifier and Type | Method and Description |
---|---|
Material |
Material.copy()
Create a copy of this material
|
Material |
Model.getMaterial(java.lang.String id) |
Material |
ModelInstance.getMaterial(java.lang.String id) |
Material |
Model.getMaterial(java.lang.String id,
boolean ignoreCase) |
Material |
ModelInstance.getMaterial(java.lang.String id,
boolean ignoreCase) |
Modifier and Type | Method and Description |
---|---|
boolean |
Material.equals(Material other) |
Constructor and Description |
---|
Material(Material copyFrom)
Create a material which is an exact copy of the specified material
|
Material(java.lang.String id,
Material copyFrom)
Create a material which is an exact copy of the specified material
|
Modifier and Type | Field and Description |
---|---|
Material |
NodePart.material |
Constructor and Description |
---|
NodePart(MeshPart meshPart,
Material material) |
Modifier and Type | Method and Description |
---|---|
Model |
ModelBuilder.createBox(float width,
float height,
float depth,
int primitiveType,
Material material,
long attributes)
Convenience method to create a model with a single node containing a box shape.
|
Model |
ModelBuilder.createBox(float width,
float height,
float depth,
Material material,
long attributes)
Convenience method to create a model with a single node containing a box shape.
|
Model |
ModelBuilder.createCapsule(float radius,
float height,
int divisions,
int primitiveType,
Material material,
long attributes)
Convenience method to create a model with a single node containing a capsule shape.
|
Model |
ModelBuilder.createCapsule(float radius,
float height,
int divisions,
Material material,
long attributes)
Convenience method to create a model with a single node containing a capsule shape.
|
Model |
ModelBuilder.createCone(float width,
float height,
float depth,
int divisions,
int primitiveType,
Material material,
long attributes)
Convenience method to create a model with a single node containing a cone shape.
|
Model |
ModelBuilder.createCone(float width,
float height,
float depth,
int divisions,
int primitiveType,
Material material,
long attributes,
float angleFrom,
float angleTo)
Convenience method to create a model with a single node containing a cone shape.
|
Model |
ModelBuilder.createCone(float width,
float height,
float depth,
int divisions,
Material material,
long attributes)
Convenience method to create a model with a single node containing a cone shape.
|
Model |
ModelBuilder.createCone(float width,
float height,
float depth,
int divisions,
Material material,
long attributes,
float angleFrom,
float angleTo)
Convenience method to create a model with a single node containing a cone shape.
|
Model |
ModelBuilder.createCylinder(float width,
float height,
float depth,
int divisions,
int primitiveType,
Material material,
long attributes)
Convenience method to create a model with a single node containing a cylinder shape.
|
Model |
ModelBuilder.createCylinder(float width,
float height,
float depth,
int divisions,
int primitiveType,
Material material,
long attributes,
float angleFrom,
float angleTo)
Convenience method to create a model with a single node containing a cylinder shape.
|
Model |
ModelBuilder.createCylinder(float width,
float height,
float depth,
int divisions,
Material material,
long attributes)
Convenience method to create a model with a single node containing a cylinder shape.
|
Model |
ModelBuilder.createCylinder(float width,
float height,
float depth,
int divisions,
Material material,
long attributes,
float angleFrom,
float angleTo)
Convenience method to create a model with a single node containing a cylinder shape.
|
static Model |
ModelBuilder.createFromMesh(float[] vertices,
VertexAttribute[] attributes,
short[] indices,
int primitiveType,
Material material)
Deprecated.
|
static Model |
ModelBuilder.createFromMesh(Mesh mesh,
int indexOffset,
int vertexCount,
int primitiveType,
Material material)
Deprecated.
|
static Model |
ModelBuilder.createFromMesh(Mesh mesh,
int primitiveType,
Material material)
Deprecated.
|
Model |
ModelBuilder.createRect(float x00,
float y00,
float z00,
float x10,
float y10,
float z10,
float x11,
float y11,
float z11,
float x01,
float y01,
float z01,
float normalX,
float normalY,
float normalZ,
int primitiveType,
Material material,
long attributes)
Convenience method to create a model with a single node containing a rectangle shape.
|
Model |
ModelBuilder.createRect(float x00,
float y00,
float z00,
float x10,
float y10,
float z10,
float x11,
float y11,
float z11,
float x01,
float y01,
float z01,
float normalX,
float normalY,
float normalZ,
Material material,
long attributes)
Convenience method to create a model with a single node containing a rectangle shape.
|
Model |
ModelBuilder.createSphere(float width,
float height,
float depth,
int divisionsU,
int divisionsV,
int primitiveType,
Material material,
long attributes)
Convenience method to create a model with a single node containing a sphere shape.
|
Model |
ModelBuilder.createSphere(float width,
float height,
float depth,
int divisionsU,
int divisionsV,
int primitiveType,
Material material,
long attributes,
float angleUFrom,
float angleUTo,
float angleVFrom,
float angleVTo)
Convenience method to create a model with a single node containing a sphere shape.
|
Model |
ModelBuilder.createSphere(float width,
float height,
float depth,
int divisionsU,
int divisionsV,
Material material,
long attributes)
Convenience method to create a model with a single node containing a sphere shape.
|
Model |
ModelBuilder.createSphere(float width,
float height,
float depth,
int divisionsU,
int divisionsV,
Material material,
long attributes,
float angleUFrom,
float angleUTo,
float angleVFrom,
float angleVTo)
Convenience method to create a model with a single node containing a sphere shape.
|
void |
ModelBuilder.part(MeshPart meshpart,
Material material)
Adds the specified MeshPart to the current Node.
|
MeshPartBuilder |
ModelBuilder.part(java.lang.String id,
int primitiveType,
long attributes,
Material material)
Creates a new MeshPart within the current Node.
|
MeshPart |
ModelBuilder.part(java.lang.String id,
Mesh mesh,
int primitiveType,
int offset,
int size,
Material material)
Adds the specified mesh part to the current node.
|
MeshPart |
ModelBuilder.part(java.lang.String id,
Mesh mesh,
int primitiveType,
Material material)
Adds the specified mesh part to the current node.
|