public HelloRhinoView(Context context, Android.Util.IAttributeSet attrs) : base(context, attrs)
        {
            // Create an OpenGL ES 2.0 context.
            SetEGLContextClientVersion(2);

            // Set the Renderer for drawing on the GLSurfaceView
            AndroidRenderer = new HelloRhinoAndroidRenderer();
            SetRenderer(AndroidRenderer);

            // The renderer only renders when the surface is created, or when requestRender() is called.
            this.RenderMode = Rendermode.WhenDirty;

            ZoomDetector       = new ScaleGestureDetector(context, new ZoomScaleListener(AndroidRenderer));
            OrbitDollyDetector = new OrbitDollyGestureDetector();
            DoubleTapDetector  = new GestureDetector(new DoubleTapListener(AndroidRenderer));
            DoubleTapDetector.SetOnDoubleTapListener(new DoubleTapListener(AndroidRenderer));
        }
Example #2
0
 public DoubleTapListener(HelloRhinoAndroidRenderer androidRenderer)
 {
     AndroidRenderer = androidRenderer;
 }
 public ZoomScaleListener(HelloRhinoAndroidRenderer androidRenderer)
 {
     AndroidRenderer = androidRenderer;
 }