use of org.gephi.visualization.opengl.GraphicalConfiguration in project gephi by gephi.
the class OpenGLPanel method load.
//GEN-LAST:event_resetButtonActionPerformed
void load() {
antiAliasing = NbPreferences.forModule(VizConfig.class).getInt(VizConfig.ANTIALIASING, VizConfig.DEFAULT_ANTIALIASING);
antialisaingCombobox.setSelectedIndex(antiAliasing == 0 ? 0 : Math.round((float) (Math.log(antiAliasing) / Math.log(2))));
fpsCheckbox.setSelected(NbPreferences.forModule(VizConfig.class).getBoolean(VizConfig.SHOW_FPS, VizConfig.DEFAULT_SHOW_FPS));
//OpenGLInfo
GraphicalConfiguration gc = VizController.getInstance().getDrawable().getGraphicalConfiguration();
if (gc != null) {
openInfoText.setText(gc.getVendor() + "\n" + gc.getRenderer() + "\nOpenGL2 " + gc.getVersionStr());
}
}
use of org.gephi.visualization.opengl.GraphicalConfiguration in project gephi by gephi.
the class GLAbstractListener method init.
@Override
public void init(GLAutoDrawable drawable) {
GL2 gl = drawable.getGL().getGL2();
graphicalConfiguration = new GraphicalConfiguration();
graphicalConfiguration.checkGeneralCompatibility(gl);
//Reinit viewport, to ensure reshape to perform
viewport = Buffers.newDirectIntBuffer(4);
resizing = false;
initConfig(gl);
// graphComponent.setCursor(Cursor.getDefaultCursor());
engine.initEngine(gl, GLU);
init(gl);
}
Aggregations