Example usage for org.lwjgl.opengl GLX glXMakeCurrent

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

Introduction

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

Prototype

@NativeType("Bool")
public static boolean glXMakeCurrent(@NativeType("Display *") long display,
        @NativeType("GLXDrawable") long draw, @NativeType("GLXContext") long ctx) 

Source Link

Document

Makes a context current in the current thread

Usage

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);
    }
}