List of usage examples for org.lwjgl.opengl GLX glXMakeCurrent
@NativeType("Bool") public static boolean glXMakeCurrent(@NativeType("Display *") long display, @NativeType("GLXDrawable") long draw, @NativeType("GLXContext") long ctx)
From source file:go.graphics.swing.contextcreator.GLXContextCreator.java
License:Open Source License
@Override protected void makeCurrent(boolean draw) { if (draw) {//from w w w . j a va 2 s . co m GLX.glXMakeCurrent(display, x11surfaceinfo.drawable(), context); } else { GLX.glXMakeCurrent(display, 0, 0); } }