List of usage examples for org.lwjgl.opengl WGL wglMakeCurrent
@NativeType("BOOL") public static boolean wglMakeCurrent(@NativeType("HDC") long hdc, @NativeType("HGLRC") long hglrc)
From source file:com.google.gapid.glcanvas.GlCanvas.java
License:Apache License
public void setCurrent() { checkWidget(); long dc = User32.GetDC(handle); WGL.wglMakeCurrent(dc, context); User32.ReleaseDC(handle, dc); }
From source file:go.graphics.swing.contextcreator.WGLContextCreator.java
License:Open Source License
@Override protected void makeCurrent(boolean draw) { if (draw) {//from ww w .j a v a2 s . com WGL.wglMakeCurrent(hdc, context); } else { WGL.wglMakeCurrent(0, 0); } }