Package org.lwjgl.system
Interface Pointer
-
- All Known Subinterfaces:
- CallbackI, CallbackI.B, CallbackI.D, CallbackI.F, CallbackI.I, CallbackI.J, CallbackI.P, CallbackI.S, CallbackI.V, CallbackI.Z, EnumerationMutationHandlerI, SharedLibrary, WindowProcI
- All Known Implementing Classes:
- Callback, CustomBuffer, DEVMODE, DEVMODE.Buffer, DISPLAY_DEVICE, DISPLAY_DEVICE.Buffer, EnumerationMutationHandler, GLYPHMETRICSFLOAT, GLYPHMETRICSFLOAT.Buffer, LinuxLibrary, MacOSXLibrary, MacOSXLibraryBundle, MacOSXLibraryDL, MONITORINFOEX, MONITORINFOEX.Buffer, MSG, MSG.Buffer, ObjCMethodDescription, ObjCMethodDescription.Buffer, ObjCPropertyAttribute, ObjCPropertyAttribute.Buffer, PIXELFORMATDESCRIPTOR, PIXELFORMATDESCRIPTOR.Buffer, POINT, POINT.Buffer, Pointer.Default, PointerBuffer, POINTFLOAT, POINTFLOAT.Buffer, POINTL, POINTL.Buffer, RECT, RECT.Buffer, SECURITY_ATTRIBUTES, SECURITY_ATTRIBUTES.Buffer, SharedLibrary.Default, SharedLibrary.Delegate, Struct, StructBuffer, TOUCHINPUT, TOUCHINPUT.Buffer, Visual, Visual.Buffer, WINDOWPLACEMENT, WINDOWPLACEMENT.Buffer, WindowProc, WindowsLibrary, WNDCLASSEX, WNDCLASSEX.Buffer, XSetWindowAttributes, XSetWindowAttributes.Buffer, XVisualInfo, XVisualInfo.Buffer
public interface Pointer
Pointer interface.LWJGL can run on both 32bit and 64bit architectures. Since LWJGL applications deal with native memory directly, this interface provides necessary information about the underlying architecture of the running JVM process.
When interacting with native functions, pointer values are mapped to Java
long
. LWJGL automatically converts long values to the correct pointer addresses when used in native code. Native functions sometimes require arrays of pointer values; thePointerBuffer
class may be used for that purpose. It has an API similar to aLongBuffer
but handles pointer casts automatically.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface and Description static class
Pointer.Default
DefaultPointer
implementation.
-
Field Summary
Fields Modifier and Type Field and Description static int
POINTER_SHIFT
The pointer size power-of-two.static int
POINTER_SIZE
The pointer size in bytes.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description long
address()
Returns the raw pointer address as along
value.
-