mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-06 06:53:59 +00:00
Implemented generator support for per-context function pointers. Fixed NV_vertex_array_range
This commit is contained in:
parent
b2c49c20b4
commit
34f4e7ae56
137 changed files with 8660 additions and 4490 deletions
|
|
@ -72,6 +72,21 @@ public final class GLContext {
|
|||
return ((ContextCapabilities)current_capabilities.get());
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the current capabilities instance. It contains the flags used
|
||||
* to test for support of a particular extension.
|
||||
*
|
||||
* @return The current capabilities instance.
|
||||
*/
|
||||
static void setCapabilities(ContextCapabilities capabilities) {
|
||||
current_capabilities.set(capabilities);
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper method to get a pointer to a named function in the OpenGL library
|
||||
*/
|
||||
static native long getFunctionAddress(String name);
|
||||
|
||||
/**
|
||||
* Determine which extensions are available. Helper method to ContextCapabilities.
|
||||
*
|
||||
|
|
@ -145,8 +160,7 @@ public final class GLContext {
|
|||
private static void loadStubs() throws LWJGLException {
|
||||
if (loaded_stubs)
|
||||
return;
|
||||
Set supported_extensions = ContextCapabilities.initAllStubs();
|
||||
current_capabilities.set(new ContextCapabilities(supported_extensions));
|
||||
new ContextCapabilities();
|
||||
loaded_stubs = true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue