Package org.lwjgl.system.windows
Class WindowsLibrary
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.SharedLibrary.Default
org.lwjgl.system.windows.WindowsLibrary
- All Implemented Interfaces:
AutoCloseable
,FunctionProvider
,NativeResource
,Pointer
,SharedLibrary
Implements a
SharedLibrary
on the Windows OS.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
Nested classes/interfaces inherited from interface org.lwjgl.system.SharedLibrary
SharedLibrary.Default, SharedLibrary.Delegate
-
Field Summary
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
free()
Frees any native resources held by this object.long
getFunctionAddress
(ByteBuffer functionName) Returns the function address of the specified function.getPath()
Returns the library path, if available.Methods inherited from class org.lwjgl.system.SharedLibrary.Default
getName
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.FunctionProvider
getFunctionAddress
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
Field Details
-
HINSTANCE
public static final long HINSTANCEThe LWJGL dll handle.
-
-
Constructor Details
-
WindowsLibrary
-
WindowsLibrary
-
-
Method Details
-
getPath
Description copied from interface:SharedLibrary
Returns the library path, if available.- Returns:
- the library path, or
null
if the path is not available.
-
getFunctionAddress
Description copied from interface:FunctionProvider
Returns the function address of the specified function. If the function is not supported, returns 0L.- Parameters:
functionName
- the encoded name of the function to query- Returns:
- the function address or 0L if the function is not supported
-
free
public void free()Description copied from interface:NativeResource
Frees any native resources held by this object.
-