Package 

Class SphericalSceneRenderer


  • 
    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
    • 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()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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)