Example usage for org.lwjgl.opengl GLX glXSwapBuffers

List of usage examples for org.lwjgl.opengl GLX glXSwapBuffers

Introduction

In this page you can find the example usage for org.lwjgl.opengl GLX glXSwapBuffers.

Prototype

public static void glXSwapBuffers(@NativeType("Display *") long display, @NativeType("GLXDrawable") long draw) 

Source Link

Document

For drawables that are double buffered, makes the contexts of the back buffer potentially visible (i.e., become the contents of the front buffer).

Usage

From source file:go.graphics.swing.contextcreator.GLXContextCreator.java

License:Open Source License

@Override
protected void swapBuffers() {
    GLX.glXSwapBuffers(display, x11surfaceinfo.drawable());
}