Package jgl.wt.awt

Class GLCanvas

    • Field Detail

      • myGL

        protected GL myGL
      • myGLU

        protected GLU myGLU
      • myUT

        protected GLUT myUT
    • Constructor Detail

      • GLCanvas

        public GLCanvas()
    • Method Detail

      • glut_enable_events

        public void glut_enable_events​(long cap,
                                       boolean state)
      • getPixelScaleFromG2D

        protected void getPixelScaleFromG2D​(Graphics2D g2d)
        Pixel scale is used to model the pixel ratio introduced by HiDPI
      • getGL

        public GL getGL()
      • getGLU

        public GLU getGLU()
      • getGLUT

        public GLUT getGLUT()
      • setGL

        public void setGL​(GL gl)
      • forceRepaint

        public void forceRepaint()
        Can be used to update image if camera has changed position. FIXME : Warning if this is invoked by a thread external to AWT, maybe this will require to redraw GL while GL is already used by AWT.