use of com.jogamp.opengl.awt.GLCanvas in project narchy by automenta.
the class CanvasOpenGLMaker method newGLCanvas.
/**
* Constructs a canvas for 3D
*
* @return Canvas constructed
*/
public GLCanvas newGLCanvas() {
if (this.capabilities != null) {
return new GLCanvas(this.capabilities);
}
GLCapabilities capabilities = new GLCapabilities(GLProfile.getDefault());
capabilities.setHardwareAccelerated(true);
capabilities.setAlphaBits(8);
capabilities.setNumSamples(1);
// //capabilities.setDepthBits(32);
return this.newGLCanvas(capabilities);
}
Aggregations