| Modifier and Type | Field and Description |
|---|---|
| private static final Map | contextUserParamsKHR
Context -> Long |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static long | Returns: the GlobalRef memory address or 0 if the Object is null.the Object obj)Creates a new global reference to the specified Object. |
| private static native void | |
| pack-priv static native long | Returns: the callback function addressReturns the memory address of the native function we pass to glDebugMessageCallback. |
| private static native long | Returns: the GlobalRef memory address.the Object obj)Creates a new global reference to the specified Object. |
| private static void | registerContextCallback(final long
the global reference pointer userParam, final Map<ContextCapabilities, Long> contextUserData)Associates the current OpenGL context with the specified global reference. |
| pack-priv static void | registerContextCallbackKHR(final long
the global reference pointer userParam)Associates the current OpenGL context with the specified global reference. |
| pack-priv static void | unregisterCallbacks(final Object
the Context to unregister context)Releases references to any callbacks associated with the specified GL context. |
| contextUserParamsKHR | back to summary |
|---|---|
| private static final Map<ContextCapabilities, Long> contextUserParamsKHR Context -> Long | |
| CallbackUtil | back to summary |
|---|---|
| private CallbackUtil() | |
| createGlobalRef | back to summary |
|---|---|
| pack-priv static long createGlobalRef(final Object obj) Creates a new global reference to the specified Object.
| |
| deleteGlobalRef | back to summary |
|---|---|
| private static native void deleteGlobalRef(long ref) Deletes a global reference.
| |
| getDebugCallbackKHR | back to summary |
|---|---|
| pack-priv static native long getDebugCallbackKHR() Returns the memory address of the native function we pass to glDebugMessageCallback.
| |
| ncreateGlobalRef | back to summary |
|---|---|
| private static native long ncreateGlobalRef(Object obj) Creates a new global reference to the specified Object.
| |
| registerContextCallback | back to summary |
|---|---|
| private static void registerContextCallback(final long userParam, final Map<ContextCapabilities, Long> contextUserData) Associates the current OpenGL context with the specified global reference. If there is no context current, the global reference is deleted and an exception is thrown. Any previous callback registrations will be cleared.
| |
| registerContextCallbackKHR | back to summary |
|---|---|
| pack-priv static void registerContextCallbackKHR(final long userParam) Associates the current OpenGL context with the specified global reference. If there is no context current, the global reference is deleted and an exception is thrown. Any previous callback registrations will be cleared.
| |
| unregisterCallbacks | back to summary |
|---|---|
| pack-priv static void unregisterCallbacks(final Object context) Releases references to any callbacks associated with the specified GL context.
| |