Package com.jme3.scene.plugins.gltf
Interface ExtrasLoader
public interface ExtrasLoader
Interface to handle a glTF extra.
Created by Nehon on 30/08/2017.
-
Method Summary
Modifier and TypeMethodDescriptionhandleExtras
(GltfLoader loader, String parentName, com.google.gson.JsonElement parent, com.google.gson.JsonElement extras, Object input) Handles a glTF extra.
-
Method Details
-
handleExtras
Object handleExtras(GltfLoader loader, String parentName, com.google.gson.JsonElement parent, com.google.gson.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 structuresparentName
- the name of the element being readparent
- the element being readextras
- the content of the extras found in the element being readinput
- 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
-