Search in sources :

Example 1 with GL2Viewer

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);
}
Also used : GLCapabilities(com.jogamp.opengl.GLCapabilities) GL2SharedResources(maspack.render.GL.GL2.GL2SharedResources) GL2Viewer(maspack.render.GL.GL2.GL2Viewer) GLProfile(com.jogamp.opengl.GLProfile)

Aggregations

GLCapabilities (com.jogamp.opengl.GLCapabilities)1 GLProfile (com.jogamp.opengl.GLProfile)1 GL2SharedResources (maspack.render.GL.GL2.GL2SharedResources)1 GL2Viewer (maspack.render.GL.GL2.GL2Viewer)1