Package org.lwjgl.opengl
Class GLX14
- java.lang.Object
-
- org.lwjgl.opengl.GLX14
-
public class GLX14 extends java.lang.Object
Native bindings to GLX 1.4.
-
-
Field Summary
Fields Modifier and Type Field and Description static int
GLX_SAMPLE_BUFFERS
GLX_SAMPLESAdded in GLX 1.4.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static long
glXGetProcAddress(java.nio.ByteBuffer procName)
Returns the address of the extension function named byprocName
.static long
glXGetProcAddress(java.lang.CharSequence procName)
Returns the address of the extension function named byprocName
.
-
-
-
Field Detail
-
GLX_SAMPLE_BUFFERS, GLX_SAMPLES
Added in GLX 1.4.
-
-
Method Detail
-
glXGetProcAddress
public static long glXGetProcAddress(java.nio.ByteBuffer procName) public static long glXGetProcAddress(java.lang.CharSequence procName)
Returns the address of the extension function named byprocName
. The pointer returned should be cast to a function pointer type matching the extension function's definition in that extension specification. A return value ofNULL
indicates that the specified function does not exist for the implementation.A non-
NULL
return value forglXGetProcAddress
does not guarantee that an extension function is actually supported at runtime. The client must also queryGetString
(GL11.GL_EXTENSIONS
) orQueryExtensionsString
to determine if an extension is supported by a particular context.GL function pointers returned by
glXGetProcAddress
are independent of the currently bound context and may be used by any context which supports the extension.glXGetProcAddress
may be queried for all of the following functions:- All GL and GLX extension functions supported by the implementation (whether those extensions are supported by the current context or not).
- All core (non-extension) functions in GL and GLX from version 1.0 up to and including the versions of those specifications supported by the
implementation, as determined by
GetString
(GL11.GL_VERSION
) andQueryVersion
queries.
- Parameters:
procName
- the function name to query
-
-