Package com.brightcove.player.video360
Class SphericalSceneRenderer
java.lang.Object
com.brightcove.player.video360.SphericalSceneRenderer
Creates and renders a sphere centered at (0, 0, 0) textured with the current video frame.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isVrMode()
Checks whether the renderer is currently configured to render the video in Google VR mode.void
onDrawFrame
(int textureId, float[] textureMatrix, float[] modelMatrix, float[] viewMatrix, float[] projectionMatrix) void
release()
void
setVrMode
(boolean vrMode) Sets whether the renderer should render the video in Google VR mode.
-
Field Details
-
SPHERE_SLICES
public static final int SPHERE_SLICES- See Also:
-
-
Constructor Details
-
SphericalSceneRenderer
public SphericalSceneRenderer(android.content.Context context)
-
-
Method Details
-
isVrMode
public boolean isVrMode()Checks whether the renderer is currently configured to render the video in Google VR mode.- Returns:
- true if Google VR mode is enabled, otherwise false.
- See Also:
-
setVrMode
public 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.- See Also:
-
onDrawFrame
public void onDrawFrame(int textureId, float[] textureMatrix, float[] modelMatrix, float[] viewMatrix, float[] projectionMatrix) -
release
public void release()
-