Class JoGLCanvasFactory

java.lang.Object
org.scilab.forge.scirenderer.implementation.jogl.JoGLCanvasFactory

public final class JoGLCanvasFactory extends Object
Author:
Pierre Lando
  • Method Details

    • 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.