List of usage examples for org.lwjgl.opengl GLX glXChooseVisual
@Nullable @NativeType("XVisualInfo *") public static XVisualInfo glXChooseVisual(@NativeType("Display *") long display, int screen, @Nullable @NativeType("int *") int[] attrib_list)
From source file:go.graphics.swing.contextcreator.GLXContextCreator.java
License:Open Source License
@Override protected void initContext() { display = x11surfaceinfo.display();/*from w w w. ja v a 2 s. c o m*/ int[] xvi_attrs = new int[] { GLX.GLX_RGBA, GLX.GLX_DOUBLEBUFFER, GLX.GLX_STENCIL_SIZE, 1, 0 }; int screen = X11.XDefaultScreen(display); XVisualInfo xvi = GLX.glXChooseVisual(display, screen, xvi_attrs); context = GLX.glXCreateContext(display, xvi, 0, true); if (context == 0) throw new Error("Could not create GLX context!"); }