Interface ExtrasLoader

All Known Implementing Classes:
UserDataLoader

public interface ExtrasLoader
Interface to handle a glTF extra. Created by Nehon on 30/08/2017.
  • Method Summary

    Modifier and Type
    Method
    Description
    handleExtras(GltfLoader loader, String parentName, com.jme3.plugins.json.JsonElement parent, com.jme3.plugins.json.JsonElement extras, Object input)
    Handles a glTF extra.
  • Method Details

    • handleExtras

      Object handleExtras(GltfLoader loader, String parentName, com.jme3.plugins.json.JsonElement parent, com.jme3.plugins.json.JsonElement extras, Object input)
      Handles a glTF extra. This method will be invoked every time an "extras" element is found in the glTF file. The parentName indicates where the "extras" element was found.
      Parameters:
      loader - the GltfLoader with all the data structures
      parentName - the name of the element being read
      parent - the element being read
      extras - the content of the extras found in the element being read
      input - an object containing already loaded data from the element, this is most probably a JME object
      Returns:
      An object of the same type as input, containing the data from the input object and the eventual additional data read from the extras