![]() Calling this method is expensive, so the GLCapabilities instance should be associated with the OpenGL context and reused asīefore a function for a given OpenGL context can be called, the corresponding GLCapabilities instance must be passed to the An OpenGL context must be current in the current threadīefore it is called. Instances of GLCapabilities can be created with the createCapabilities() method. This can be useful to ensure that no functionality above a specific version is used during development. The maximum OpenGL version loaded can be set with the Configuration.OPENGL_MAXVERSION With the Configuration.OPENGL_LIBRARY_NAME option. The name of the library loaded can be overridden Manual loading/unloading can be achieved with the create() and destroy() functions. ![]() ![]() Set the Configuration.OPENGL_EXPLICIT_INIT option to override thisīehavior. The OpenGL library is loaded automatically when this class is initialized. Maintains thread-local state for GLCapabilities instances, corresponding to OpenGL contexts that are current in those threads.Internally, it also contains function pointers that are only valid in that specific OpenGL context. A GLCapabilities instance contains flags for functionality that is available in an OpenGLĬontext. Creates instances of GLCapabilities classes.Loads the OpenGL native library into the JVM process.This class must be used before any OpenGL function is called.
0 Comments
Leave a Reply. |