java.lang.Object
overrungl.opengl.GLUtil
GLUtil
relies on preview features of the Java platform:
GLUtil
refers to one or more preview APIs:Arena
.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
OpenGL utilities.
- Since:
- 0.1.0
- Author:
- squid233
-
Method Summary
Modifier and TypeMethodDescriptionDetects the best debug output functionality to use and creates a callback that prints information toAPI Logger
.setupDebugMessageCallback
(Consumer<String> logger) Detects the best debug output functionality to use and creates a callback that prints information to the specified logger.
-
Method Details
-
setupDebugMessageCallback
Detects the best debug output functionality to use and creates a callback that prints information toAPI Logger
.The callback function is returned as an
Arena
PREVIEW, that should reset to NULL and befreed
PREVIEW when no longer needed, which is often after destroying GL context.- Returns:
- the arena.
-
setupDebugMessageCallback
Detects the best debug output functionality to use and creates a callback that prints information to the specified logger.The callback function is returned as a
Arena
PREVIEW, that should reset to NULL and befreed
PREVIEW when no longer needed, which is often after destroy GL context.- Parameters:
logger
- the output logger.- Returns:
- the arena.
-
GLUtil
when preview features are enabled.