Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.

public static final class GltfScene.MaterialInfo

  1. Object
  2. GltfScene.MaterialInfo
The parts of a glTF material a Material can express.

Methods

public String getName()The material’s name, or an empty string.
public int getBaseColor()The base color factor as ARGB.
public int getImage()The index of the base color image, or -1.
public boolean isDoubleSided()True when back faces must not be culled.
public boolean isBlend()True when the material’s alpha mode is BLEND.

Inherited methods

Method details

getName

public String getName()
The material’s name, or an empty string.

getBaseColor

public int getBaseColor()
The base color factor as ARGB.

getImage

public int getImage()
The index of the base color image, or -1.

isDoubleSided

public boolean isDoubleSided()
True when back faces must not be culled.

isBlend

public boolean isBlend()
True when the material’s alpha mode is BLEND.