Interface GlimpseContext

    • Method Detail

      • getGLContext

        com.jogamp.opengl.GLContext getGLContext()
        Returns:
        a reference to the OpenGL rendering context wrapped by this GlimpseContext
      • getGL

        com.jogamp.opengl.GL getGL()
        Returns:
        a convenience method shorthand for the common: getGLContext( ).getGL( )
      • getDPI

        int getDPI()
        Returns:
        the ratio of pixels per inch for the current context
      • getSurfaceScale

        float[] getSurfaceScale()
        Returns the scale factors needed to convert the _native_ pixel coordinates to the _window_ pixel coordinates. This only really matters on displays like like Macbook Retina.
        Returns:
        the scale factors as {scaleX, scaleY}