-
public class SphericalSceneRenderer
Creates and renders a sphere centered at (0, 0, 0) textured with the current video frame.
-
-
Field Summary
Fields Modifier and Type Field Description public final static int
SPHERE_SLICES
private boolean
vrMode
-
Constructor Summary
Constructors Constructor Description SphericalSceneRenderer(Context context)
-
Method Summary
Modifier and Type Method Description void
setVrMode(boolean vrMode)
Sets whether the renderer should render the video in Google VR mode. boolean
isVrMode()
Checks whether the renderer is currently configured to render the video in Google VR mode. void
onDrawFrame(int textureId, Array<float> textureMatrix, Array<float> modelMatrix, Array<float> viewMatrix, Array<float> projectionMatrix)
void
release()
-
-
Constructor Detail
-
SphericalSceneRenderer
SphericalSceneRenderer(Context context)
-
-
Method Detail
-
setVrMode
void setVrMode(boolean vrMode)
Sets whether the renderer should render the video in Google VR mode.
- Parameters:
vrMode
- true if Google VR mode should be enabled, otherwise false.
-
isVrMode
boolean isVrMode()
Checks whether the renderer is currently configured to render the video in Google VR mode.
-
onDrawFrame
void onDrawFrame(int textureId, Array<float> textureMatrix, Array<float> modelMatrix, Array<float> viewMatrix, Array<float> projectionMatrix)
-
release
void release()
-
-
-
-