Class JoGLCanvasFactory


  • public final class JoGLCanvasFactory
    extends java.lang.Object
    Author:
    Pierre Lando
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Canvas createCanvas​(int width, int height)
      Create a canvas for an offscreen rendering.
      static Canvas createCanvas​(com.jogamp.opengl.GLAutoDrawable autoDrawable)
      Create a canvas from an auto drawable object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • createCanvas

        public static Canvas createCanvas​(com.jogamp.opengl.GLAutoDrawable autoDrawable)
        Create a canvas from an auto drawable object.
        Parameters:
        autoDrawable - the auto drawable object.
        Returns:
        a canvas based on the given auto drawable object.
      • createCanvas

        public static Canvas createCanvas​(int width,
                                          int height)
        Create a canvas for an offscreen rendering.
        Parameters:
        width - the width
        height - the height
        Returns:
        a canvas.