Class FBOGlimpseCanvas

    • Constructor Detail

      • FBOGlimpseCanvas

        public FBOGlimpseCanvas​(com.jogamp.opengl.GLProfile glProfile,
                                int width,
                                int height)
      • FBOGlimpseCanvas

        public FBOGlimpseCanvas​(com.jogamp.opengl.GLContext glContext,
                                int width,
                                int height)
      • FBOGlimpseCanvas

        public FBOGlimpseCanvas​(com.jogamp.opengl.GLContext glContext,
                                int width,
                                int height,
                                boolean isBackgroundOpaque)
      • FBOGlimpseCanvas

        @Deprecated
        public FBOGlimpseCanvas​(com.jogamp.opengl.GLProfile glProfile,
                                com.jogamp.opengl.GLContext glContext,
                                int width,
                                int height)
        Deprecated.
        Use FBOGlimpseCanvas(GLContext,int,int) instead. The context implicitly provides a GLProfile.
    • Method Detail

      • resize

        public void resize​(int width,
                           int height)
      • getTextureName

        public int getTextureName()
      • getTexture

        public com.jogamp.opengl.util.texture.Texture getTexture()
      • getGLProfile

        public com.jogamp.opengl.GLProfile getGLProfile()
      • getGLDrawable

        public com.jogamp.opengl.GLOffscreenAutoDrawable.FBO getGLDrawable()
      • getGLContext

        public com.jogamp.opengl.GLContext getGLContext()
      • paint

        public void paint()
        Description copied from interface: GlimpseCanvas
        Lays out any GlimpseLayout instances attached to the GlimpseCanvas and paints all GlimpsePainter instances attached to the GlimpseLayouts.
      • getTargetBounds

        public GlimpseBounds getTargetBounds​(GlimpseTargetStack stack)
        Description copied from interface: GlimpseTarget
        Returns the cached or calculated bounds of this GlimpseTarget for a particular context.
        Returns:
        the bounds for the given stack
      • destroy

        public void destroy()
        Description copied from interface: GlimpseCanvas
        Destroys the native surface which this canvas draws to. Does not dispose of GL resources associated with GlimpsePainters and GlimpseLayouts attached to the GlimpseCanvas (as these may be attached to other GlimpseCanvases as well). Disposing of Glimpse resources can be done via #disposeAttached().
        See Also:
        GlimpseCanvas.disposeAttached()
      • isDestroyed

        public boolean isDestroyed()
        Returns:
        whether or not #dispose() has been successfully called. Once true, this GlimpseCanvas is no longer valid for rendering.
      • isVisible

        public boolean isVisible()
        Description copied from interface: GlimpseTarget
        If true, the GlimpseTarget should be drawn on the screen and mouse events should be dispatched for it. Otherwise it is invisible and mouse events should not fire for the GlimpseTarget or its children.
      • getSurfaceScale

        public float[] getSurfaceScale()
        Description copied from interface: GlimpseCanvas
        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}