use of maspack.render.GL.GL2.GL2Viewer in project artisynth_core by artisynth.
the class MultiViewer method addGL2Viewer.
public void addGL2Viewer(String title, int x, int y, int w, int h) {
if (gl2resources == null) {
GLProfile glp3 = GLProfile.get(GLProfile.GL2);
GLCapabilities cap = new GLCapabilities(glp3);
cap.setSampleBuffers(true);
cap.setNumSamples(8);
gl2resources = new GL2SharedResources(cap);
}
GL2Viewer viewer = new GL2Viewer(null, gl2resources, w, h);
addViewer(title, viewer, x, y, w, h);
}
Aggregations