public class WGL
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
WGL.Functions
Contains the function pointers loaded from
GL.getFunctionProvider(). |
| Modifier and Type | Field and Description |
|---|---|
static int |
WGL_FONT_LINES
UseFontOutlines format.
|
static int |
WGL_FONT_POLYGONS
UseFontOutlines format.
|
static int |
WGL_SWAP_MAIN_PLANE
SwapLayerBuffers flags.
|
static int |
WGL_SWAP_OVERLAY1
SwapLayerBuffers flags.
|
static int |
WGL_SWAP_OVERLAY10
SwapLayerBuffers flags.
|
static int |
WGL_SWAP_OVERLAY11
SwapLayerBuffers flags.
|
static int |
WGL_SWAP_OVERLAY12
SwapLayerBuffers flags.
|
static int |
WGL_SWAP_OVERLAY13
SwapLayerBuffers flags.
|
static int |
WGL_SWAP_OVERLAY14
SwapLayerBuffers flags.
|
static int |
WGL_SWAP_OVERLAY15
SwapLayerBuffers flags.
|
static int |
WGL_SWAP_OVERLAY2
SwapLayerBuffers flags.
|
static int |
WGL_SWAP_OVERLAY3
SwapLayerBuffers flags.
|
static int |
WGL_SWAP_OVERLAY4
SwapLayerBuffers flags.
|
static int |
WGL_SWAP_OVERLAY5
SwapLayerBuffers flags.
|
static int |
WGL_SWAP_OVERLAY6
SwapLayerBuffers flags.
|
static int |
WGL_SWAP_OVERLAY7
SwapLayerBuffers flags.
|
static int |
WGL_SWAP_OVERLAY8
SwapLayerBuffers flags.
|
static int |
WGL_SWAP_OVERLAY9
SwapLayerBuffers flags.
|
static int |
WGL_SWAP_UNDERLAY1
SwapLayerBuffers flags.
|
static int |
WGL_SWAP_UNDERLAY10
SwapLayerBuffers flags.
|
static int |
WGL_SWAP_UNDERLAY11
SwapLayerBuffers flags.
|
static int |
WGL_SWAP_UNDERLAY12
SwapLayerBuffers flags.
|
static int |
WGL_SWAP_UNDERLAY13
SwapLayerBuffers flags.
|
static int |
WGL_SWAP_UNDERLAY14
SwapLayerBuffers flags.
|
static int |
WGL_SWAP_UNDERLAY15
SwapLayerBuffers flags.
|
static int |
WGL_SWAP_UNDERLAY2
SwapLayerBuffers flags.
|
static int |
WGL_SWAP_UNDERLAY3
SwapLayerBuffers flags.
|
static int |
WGL_SWAP_UNDERLAY4
SwapLayerBuffers flags.
|
static int |
WGL_SWAP_UNDERLAY5
SwapLayerBuffers flags.
|
static int |
WGL_SWAP_UNDERLAY6
SwapLayerBuffers flags.
|
static int |
WGL_SWAP_UNDERLAY7
SwapLayerBuffers flags.
|
static int |
WGL_SWAP_UNDERLAY8
SwapLayerBuffers flags.
|
static int |
WGL_SWAP_UNDERLAY9
SwapLayerBuffers flags.
|
| Modifier and Type | Method and Description |
|---|---|
static long |
nwglGetProcAddress(long proc)
Unsafe version of:
GetProcAddress |
static boolean |
wglCopyContext(long src,
long dst,
int mask)
Copies selected groups of rendering states from one OpenGL rendering context to another.
|
static long |
wglCreateContext(long hdc)
Creates a new OpenGL rendering context, which is suitable for drawing on the device referenced by device.
|
static long |
wglCreateLayerContext(long hdc,
int layerPlane)
Creates a new OpenGL rendering context for drawing to a specified layer plane on a device context.
|
static boolean |
wglDeleteContext(long context)
Deletes a specified OpenGL rendering context.
|
static long |
wglGetCurrentContext()
Obtains a handle to the current OpenGL rendering context of the calling thread.
|
static long |
wglGetCurrentDC()
Obtains a handle to the device context that is associated with the current OpenGL rendering context of the calling thread.
|
static long |
wglGetProcAddress(java.nio.ByteBuffer proc)
Returns the address of an OpenGL extension function for use with the current OpenGL rendering context.
|
static long |
wglGetProcAddress(java.lang.CharSequence proc)
Returns the address of an OpenGL extension function for use with the current OpenGL rendering context.
|
static boolean |
wglMakeCurrent(long hdc,
long hglrc)
Makes a specified OpenGL rendering context the calling thread's current rendering context.
|
static boolean |
wglShareLists(long hglrc1,
long hglrc2)
Enables multiple OpenGL rendering contexts to share a single display-list space.
|
public static final int WGL_FONT_LINES
public static final int WGL_FONT_POLYGONS
public static final int WGL_SWAP_MAIN_PLANE
public static final int WGL_SWAP_OVERLAY1
public static final int WGL_SWAP_OVERLAY2
public static final int WGL_SWAP_OVERLAY3
public static final int WGL_SWAP_OVERLAY4
public static final int WGL_SWAP_OVERLAY5
public static final int WGL_SWAP_OVERLAY6
public static final int WGL_SWAP_OVERLAY7
public static final int WGL_SWAP_OVERLAY8
public static final int WGL_SWAP_OVERLAY9
public static final int WGL_SWAP_OVERLAY10
public static final int WGL_SWAP_OVERLAY11
public static final int WGL_SWAP_OVERLAY12
public static final int WGL_SWAP_OVERLAY13
public static final int WGL_SWAP_OVERLAY14
public static final int WGL_SWAP_OVERLAY15
public static final int WGL_SWAP_UNDERLAY1
public static final int WGL_SWAP_UNDERLAY2
public static final int WGL_SWAP_UNDERLAY3
public static final int WGL_SWAP_UNDERLAY4
public static final int WGL_SWAP_UNDERLAY5
public static final int WGL_SWAP_UNDERLAY6
public static final int WGL_SWAP_UNDERLAY7
public static final int WGL_SWAP_UNDERLAY8
public static final int WGL_SWAP_UNDERLAY9
public static final int WGL_SWAP_UNDERLAY10
public static final int WGL_SWAP_UNDERLAY11
public static final int WGL_SWAP_UNDERLAY12
public static final int WGL_SWAP_UNDERLAY13
public static final int WGL_SWAP_UNDERLAY14
public static final int WGL_SWAP_UNDERLAY15
public static long wglCreateContext(long hdc)
hdc - handle to a device context for which the function creates a suitable OpenGL rendering contextpublic static long wglCreateLayerContext(long hdc,
int layerPlane)
hdc - the device context for a new rendering contextlayerPlane - the layer plane to which you want to bind a rendering context. The value 0 identifies the main plane. Positive values of layerPlace identify
overlay planes, where 1 is the first overlay plane over the main plane, 2 is the second overlay plane over the first overlay plane, and so on.
Negative values identify underlay planes, where 1 is the first underlay plane under the main plane, 2 is the second underlay plane under the first
underlay plane, and so on. The number of overlay and underlay planes is given in the reserved member of the PIXELFORMATDESCRIPTOR
structure.public static boolean wglCopyContext(long src,
long dst,
int mask)
src - the source OpenGL rendering context whose state information is to be copieddst - the destination OpenGL rendering context to which state information is to be copiedmask - which groups of the src rendering state are to be copied to dst. It contains the bitwise-OR of the same symbolic names that are
passed to the PushAttrib function. You can use ALL_ATTRIB_BITS to copy all the rendering state information.public static boolean wglDeleteContext(long context)
context - handle to an OpenGL rendering context that the function will deletepublic static long wglGetCurrentContext()
public static long wglGetCurrentDC()
public static long nwglGetProcAddress(long proc)
GetProcAddresspublic static long wglGetProcAddress(java.nio.ByteBuffer proc)
proc - points to a null-terminated string that is the name of the extension function. The name of the extension function must be identical to a
corresponding function implemented by OpenGL.public static long wglGetProcAddress(java.lang.CharSequence proc)
proc - points to a null-terminated string that is the name of the extension function. The name of the extension function must be identical to a
corresponding function implemented by OpenGL.public static boolean wglMakeCurrent(long hdc,
long hglrc)
hdc - handle to a device context. Subsequent OpenGL calls made by the calling thread are drawn on the device identified by dc.hglrc - handle to an OpenGL rendering context that the function sets as the calling thread's rendering context. If context is NULL, the function
makes the calling thread's current rendering context no longer current, and releases the device context that is used by the rendering context. In
this case, hdc is ignored.public static boolean wglShareLists(long hglrc1,
long hglrc2)
hglrc1 - the OpenGL rendering context with which to share display lists.hglrc2 - the OpenGL rendering context to share display lists with hglrc1. The hglrc2 parameter should not contain any existing display lists
when wglShareLists is called.Copyright LWJGL. All Rights Reserved. License terms.