1
1
/*
2
- * Copyright (c) 2009-2021 jMonkeyEngine
2
+ * Copyright (c) 2009-2024 jMonkeyEngine
3
3
* All rights reserved.
4
4
*
5
5
* Redistribution and use in source and binary forms, with or without
31
31
*/
32
32
package com .jme3 .scene .plugins .gltf ;
33
33
34
+ import com .google .gson .JsonArray ;
35
+ import com .google .gson .JsonElement ;
36
+ import com .google .gson .JsonObject ;
34
37
import com .jme3 .asset .AssetInfo ;
35
38
import com .jme3 .asset .AssetLoadException ;
36
39
import com .jme3 .math .*;
37
40
import com .jme3 .scene .*;
38
- import com .jme3 .plugins .json .Json ;
39
- import com .jme3 .plugins .json .JsonParser ;
40
- import com .jme3 .plugins .json .JsonArray ;
41
- import com .jme3 .plugins .json .JsonObject ;
42
- import com .jme3 .plugins .json .JsonElement ;
43
41
import com .jme3 .texture .Texture ;
44
42
import com .jme3 .util .*;
45
43
import java .io .*;
@@ -61,18 +59,7 @@ public class GltfUtils {
61
59
private GltfUtils () {
62
60
}
63
61
64
-
65
- /**
66
- * Parse a json input stream and returns a {@link JsonObject}
67
- * @param stream the stream to parse
68
- * @return the JsonObject
69
- */
70
- public static JsonObject parse (InputStream stream ) {
71
- JsonParser parser = Json .create ();
72
- return parser .parse (stream );
73
- }
74
-
75
- public static Mesh .Mode getMeshMode (Integer mode ) {
62
+ public static Mesh .Mode getMeshMode (Integer mode ) {
76
63
if (mode == null ) {
77
64
return Mesh .Mode .Triangles ;
78
65
}
0 commit comments