Class SphericalSceneRenderer

java.lang.Object
com.brightcove.player.video360.SphericalSceneRenderer

public class SphericalSceneRenderer extends Object
Creates and renders a sphere centered at (0, 0, 0) textured with the current video frame.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    SphericalSceneRenderer(android.content.Context context)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    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
     
    void
    setVrMode(boolean vrMode)
    Sets whether the renderer should render the video in Google VR mode.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • 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()