Top Description Fields Constructors Methods
org.lwjgl.system

public final Class ThreadLocalUtil

extends Object
Class Inheritance
Imports
org.lwjgl.*

This class supports bindings with thread-local data. [INTERNAL USE ONLY]

Field Summary

Modifier and TypeField and Description
private static final int
CAPABILITIES_OFFSET

The offset in JNIEnv at which to store the pointer to the capabilities array.

private static final long
FUNCTION_MISSING_ABORT

A function to delegate to when an unsupported function is called.

private static long
private static final long
JNI_NATIVE_INTERFACE

The global JNIEnv.

private static final int
JNI_NATIVE_INTERFACE_FUNCTION_COUNT

The number of pointers in the JNIEnv struct.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static boolean
private static native long
private static native long
private static native long
nsetupEnvData(int functionCount)

public static void
setCapabilities(long capabilities)

public static void
setFunctionMissingAddresses(int functionCount)

public static PointerBuffer
public static long
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CAPABILITIES_OFFSETback to summary
private static final int CAPABILITIES_OFFSET

The offset in JNIEnv at which to store the pointer to the capabilities array.

FUNCTION_MISSING_ABORTback to summary
private static final long FUNCTION_MISSING_ABORT

A function to delegate to when an unsupported function is called.

FUNCTION_MISSING_ABORT_TABLEback to summary
private static long FUNCTION_MISSING_ABORT_TABLE

An array filled with FUNCTION_MISSING_ABORT.

The array size depends on whether OpenGL or OpenGL ES is used.

JNI_NATIVE_INTERFACEback to summary
private static final long JNI_NATIVE_INTERFACE

The global JNIEnv.

JNI_NATIVE_INTERFACE_FUNCTION_COUNTback to summary
private static final int JNI_NATIVE_INTERFACE_FUNCTION_COUNT

The number of pointers in the JNIEnv struct.

Constructor Detail

ThreadLocalUtilback to summary
private ThreadLocalUtil()

Method Detail

areCapabilitiesDifferentback to summary
public static boolean areCapabilitiesDifferent(PointerBuffer ref, PointerBuffer caps)
getFunctionMissingAbortback to summary
private static native long getFunctionMissingAbort()
getThreadJNIEnvback to summary
private static native long getThreadJNIEnv()
nsetupEnvDataback to summary
private static native long nsetupEnvData(int functionCount)
setCapabilitiesback to summary
public static void setCapabilities(long capabilities)
setFunctionMissingAddressesback to summary
public static void setFunctionMissingAddresses(int functionCount)
setupAddressBufferback to summary
public static PointerBuffer setupAddressBuffer(PointerBuffer addresses)
setupEnvDataback to summary
public static long setupEnvData()