Class GLFWLoader
-
Constructor Details
-
GLFWLoader
public GLFWLoader()
-
-
Method Details
-
loadGLFWLibrary
public static void loadGLFWLibrary()Try loading the GLFW library.
This function is implemented in terms of
System.loadLibrary(java.lang.String)
. On Windows it will try"glfw3"
(glfw3.dll
), and on other platforms it will try"glfw"
(libglfw.so
).Instead of using this function, you may also implement your own GLFW library loading logic.
-
loadGLFW
Load GLFW functions.
This function is implemented in terms of
Loader.loadFunctionOrNull(java.lang.String, java.lang.foreign.FunctionDescriptor)
. If any of the functions is not found, that "slot" will be filled withnull
. Calling a function not loaded will result in aNullPointerException
, intuitively. For GLFW, in theory only platform-dependent functions (functions inglfw3native.h
) may not be found.Instead of using this function, you may also implement your own command loading logic with
GLFW(club.doki7.ffm.RawFunctionLoader)
and your ownFunctionLoader
.- Returns:
- loaded GLFW functions
-