Package org.lwjgl.system
Interface Pointer
-
- All Known Subinterfaces:
CallbackI,CallbackI.B,CallbackI.D,CallbackI.F,CallbackI.I,CallbackI.J,CallbackI.N,CallbackI.P,CallbackI.S,CallbackI.V,CallbackI.Z,CGEventTapCallBackI,EnumerationMutationHandlerI,SharedLibrary,WindowProcI
- All Known Implementing Classes:
Callback,CGEventTapCallBack,CGEventTapInformation,CGEventTapInformation.Buffer,CGPoint,CGPoint.Buffer,CLongBuffer,CustomBuffer,DEVMODE,DEVMODE.Buffer,DISPLAY_DEVICE,DISPLAY_DEVICE.Buffer,EnumerationMutationHandler,HARDWAREINPUT,HARDWAREINPUT.Buffer,INPUT,INPUT.Buffer,JNINativeMethod,JNINativeMethod.Buffer,KEYBDINPUT,KEYBDINPUT.Buffer,LinuxLibrary,MacOSXLibrary,MacOSXLibraryBundle,MacOSXLibraryDL,MemoryStack,MONITORINFOEX,MONITORINFOEX.Buffer,MOUSEINPUT,MOUSEINPUT.Buffer,MSG,MSG.Buffer,ObjCMethodDescription,ObjCMethodDescription.Buffer,ObjCPropertyAttribute,ObjCPropertyAttribute.Buffer,PIXELFORMATDESCRIPTOR,PIXELFORMATDESCRIPTOR.Buffer,POINT,POINT.Buffer,Pointer.Default,PointerBuffer,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,XAnyEvent,XAnyEvent.Buffer,XButtonEvent,XButtonEvent.Buffer,XCirculateEvent,XCirculateEvent.Buffer,XCirculateRequestEvent,XCirculateRequestEvent.Buffer,XClientMessageEvent,XClientMessageEvent.Buffer,XColormapEvent,XColormapEvent.Buffer,XConfigureEvent,XConfigureEvent.Buffer,XConfigureRequestEvent,XConfigureRequestEvent.Buffer,XCreateWindowEvent,XCreateWindowEvent.Buffer,XCrossingEvent,XCrossingEvent.Buffer,XDestroyWindowEvent,XDestroyWindowEvent.Buffer,XErrorEvent,XErrorEvent.Buffer,XEvent,XEvent.Buffer,XExposeEvent,XExposeEvent.Buffer,XFocusChangeEvent,XFocusChangeEvent.Buffer,XGenericEvent,XGenericEvent.Buffer,XGenericEventCookie,XGenericEventCookie.Buffer,XGraphicsExposeEvent,XGraphicsExposeEvent.Buffer,XGravityEvent,XGravityEvent.Buffer,XKeyEvent,XKeyEvent.Buffer,XKeymapEvent,XKeymapEvent.Buffer,XMapEvent,XMapEvent.Buffer,XMappingEvent,XMappingEvent.Buffer,XMapRequestEvent,XMapRequestEvent.Buffer,XMotionEvent,XMotionEvent.Buffer,XNoExposeEvent,XNoExposeEvent.Buffer,XPropertyEvent,XPropertyEvent.Buffer,XReparentEvent,XReparentEvent.Buffer,XResizeRequestEvent,XResizeRequestEvent.Buffer,XSelectionClearEvent,XSelectionClearEvent.Buffer,XSelectionEvent,XSelectionEvent.Buffer,XSelectionRequestEvent,XSelectionRequestEvent.Buffer,XSetWindowAttributes,XSetWindowAttributes.Buffer,XTimeCoord,XTimeCoord.Buffer,XUnmapEvent,XUnmapEvent.Buffer,XVisibilityEvent,XVisibilityEvent.Buffer,XVisualInfo,XVisualInfo.Buffer
public interface PointerPointer 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; thePointerBufferclass may be used for that purpose. It has an API similar to aLongBufferbut handles pointer casts automatically.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classPointer.DefaultDefaultPointerimplementation.
-
Field Summary
Fields Modifier and Type Field Description static booleanBITS32Will be true on a 32bit JVM.static booleanBITS64Will be true on a 64bit JVM.static intCLONG_SHIFTThe value ofsizeof(long)as a power-of-two.static intCLONG_SIZEThe value ofsizeof(long)for the current platform.static intPOINTER_SHIFTThe pointer size power-of-two.static intPOINTER_SIZEThe pointer size in bytes.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longaddress()Returns the raw pointer address as alongvalue.
-
-
-
Field Detail
-
POINTER_SIZE
static final int POINTER_SIZE
The pointer size in bytes. Will be 4 on a 32bit JVM and 8 on a 64bit one.
-
POINTER_SHIFT
static final int POINTER_SHIFT
The pointer size power-of-two. Will be 2 on a 32bit JVM and 3 on a 64bit one.
-
CLONG_SIZE
static final int CLONG_SIZE
The value ofsizeof(long)for the current platform.
-
CLONG_SHIFT
static final int CLONG_SHIFT
The value ofsizeof(long)as a power-of-two.
-
BITS32
static final boolean BITS32
Will be true on a 32bit JVM.
-
BITS64
static final boolean BITS64
Will be true on a 64bit JVM.
-
-