Class SceneformBundle
- java.lang.Object
-
- com.google.ar.sceneform.rendering.SceneformBundle
-
public final class SceneformBundle extends java.lang.Object
Helper functions for loading and processing rendercore bundles.
-
-
Field Summary
Fields Modifier and Type Field Description static float
RCB_MAJOR_VERSION
static int
RCB_MINOR_VERSION
-
Constructor Summary
Constructors Constructor Description SceneformBundle()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isSceneformBundle(java.nio.ByteBuffer buffer)
static CollisionShape
readCollisionGeometry(com.google.ar.schemas.sceneform.SceneformBundleDef rcb)
static com.google.ar.schemas.sceneform.SceneformBundleDef
tryLoadSceneformBundle(java.nio.ByteBuffer buffer)
-
-
-
Field Detail
-
RCB_MAJOR_VERSION
public static final float RCB_MAJOR_VERSION
- See Also:
- Constant Field Values
-
RCB_MINOR_VERSION
public static final int RCB_MINOR_VERSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
tryLoadSceneformBundle
@Nullable public static com.google.ar.schemas.sceneform.SceneformBundleDef tryLoadSceneformBundle(java.nio.ByteBuffer buffer) throws com.google.ar.sceneform.rendering.SceneformBundle.VersionException
- Throws:
com.google.ar.sceneform.rendering.SceneformBundle.VersionException
-
readCollisionGeometry
public static CollisionShape readCollisionGeometry(com.google.ar.schemas.sceneform.SceneformBundleDef rcb) throws java.io.IOException
- Throws:
java.io.IOException
-
isSceneformBundle
public static boolean isSceneformBundle(java.nio.ByteBuffer buffer)
-
-