Internal class, don't use.
Configuration#DISABLE_CHECKS, Configuration#DEBUG, Configuration#DEBUG_FUNCTIONS
| Modifier and Type | Field and Description |
|---|---|
| public static final boolean | CHECKS
Runtime checks flag. |
| public static final boolean | DEBUG
Debug mode flag. |
| public static final boolean | DEBUG_FUNCTIONS
Debug functions flag. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| public static long | |
| public static void | check(byte[]
the array to check buf, int the minimum array capacity size)Helper method to ensure a array has enough capacity. |
| public static void | check(short[]
the array to check buf, int the minimum array capacity size)Helper method to ensure a array has enough capacity. |
| public static void | check(int[]
the array to check buf, int the minimum array capacity size)Helper method to ensure a array has enough capacity. |
| public static void | check(long[]
the array to check buf, int the minimum array capacity size)Helper method to ensure a array has enough capacity. |
| public static void | check(float[]
the array to check buf, int the minimum array capacity size)Helper method to ensure a array has enough capacity. |
| public static void | check(double[]
the array to check buf, int the minimum array capacity size)Helper method to ensure a array has enough capacity. |
| public static void | check(CharSequence
the text to check text, int the minimum number of characters size)Helper method to ensure a CharSequence has enough characters. |
| public static void | |
| public static void | |
| public static void | check(CustomBuffer<?>
the buffer to check buf, int the minimum buffer capacity size)Helper method to ensure a |
| public static void | |
| public static void | |
| public static long | |
| private static void | |
| private static void | |
| public static boolean | Returns: true if all function pointers are valid, false otherwise.the function pointers to check functions)Checks if any of the specified functions pointers is |
| public static boolean | Returns: true if all functions are available, false otherwisethe function address provider provider, PointerBuffer the function address buffer caps, int[] the function indices indices, String... the function names functions)Checks if all functions are available in the function provider. |
| public static boolean | Returns: true if all functions are available, false otherwisethe function address provider provider, long the handle to a platform/device/context handle, PointerBuffer the function address buffer caps, int[] the function indices indices, String... the function names functions)Checks if all functions are available in the function provider. |
| public static boolean | Returns: true if all functions are available, false otherwisethe function address provider provider, long[] the function address buffer caps, int[] the function indices indices, String... the function names functions)Checks if all functions are available in the function provider. |
| public static void | |
| public static void | |
| public static void | |
| public static void | checkNT(int[] buf, int terminator)
Ensures that the specified array is terminated with the specified terminator. |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | checkNT(PointerBuffer buf, long terminator)
Ensures that the specified PointerBuffer is terminated with the specified terminator. |
| public static void | checkNT1(ByteBuffer buf)
Ensures that the specified ByteBuffer is null-terminated (last byte equal to 0). |
| public static void | |
| public static void | checkNT2(ByteBuffer buf)
Ensures that the specified ByteBuffer is null-terminated (last 2 bytes equal to 0). |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static int | |
| public static int | |
| public static int | |
| public static int | |
| public static int | |
| public static int | |
| public static int | |
| public static boolean | |
| private static void | |
| private static void |
| CHECKS | back to summary |
|---|---|
| public static final boolean CHECKS Runtime checks flag. When enabled, LWJGL will perform basic checks during its operation, mainly to avoid crashes in native code. Examples of such checks are: context-specific function address validation, buffer capacity checks, null-termination checks, etc. These checks are generally low-overhead and should not have a measurable effect on performance, so its recommended to have them enabled both during development and in production releases. If maximum performance is required, they can be disabled by setting | |
| DEBUG | back to summary |
|---|---|
| public static final boolean DEBUG Debug mode flag. When enabled, LWJGL will perform additional checks during its operation. These checks are more expensive than the ones enabled with Can be enabled by setting | |
| DEBUG_FUNCTIONS | back to summary |
|---|---|
| public static final boolean DEBUG_FUNCTIONS Debug functions flag. When enabled, a warning message will be output to the debug stream when LWJGL fails to retrieve a function pointer. Can be enabled by setting | |
| Checks | back to summary |
|---|---|
| private Checks() | |
| assertNT | back to summary |
|---|---|
| private static void assertNT(boolean found) | |
| check | back to summary |
|---|---|
| public static long check(long pointer) Ensures that the specified pointer is not
| |
| check | back to summary |
|---|---|
| public static void check(byte[] buf, int size) Helper method to ensure a array has enough capacity.
| |
| check | back to summary |
|---|---|
| public static void check(short[] buf, int size) Helper method to ensure a array has enough capacity.
| |
| check | back to summary |
|---|---|
| public static void check(int[] buf, int size) Helper method to ensure a array has enough capacity.
| |
| check | back to summary |
|---|---|
| public static void check(long[] buf, int size) Helper method to ensure a array has enough capacity.
| |
| check | back to summary |
|---|---|
| public static void check(float[] buf, int size) Helper method to ensure a array has enough capacity.
| |
| check | back to summary |
|---|---|
| public static void check(double[] buf, int size) Helper method to ensure a array has enough capacity.
| |
| check | back to summary |
|---|---|
| public static void check(CharSequence text, int size) Helper method to ensure a CharSequence has enough characters.
| |
| check | back to summary |
|---|---|
| public static void check(Buffer buf, int size) Helper method to ensure a buffer has enough capacity.
| |
| check | back to summary |
|---|---|
public static void check(Buffer buf, long size)
| |
| check | back to summary |
|---|---|
| public static void check(CustomBuffer<?> buf, int size) Helper method to ensure a
| |
| check | back to summary |
|---|---|
public static void check(CustomBuffer<?> buf, long size)
| |
| check | back to summary |
|---|---|
| public static void check(Object[] array, int size) | |
| check | back to summary |
|---|---|
| public static long check(int index, int length) | |
| checkBuffer | back to summary |
|---|---|
| private static void checkBuffer(int bufferSize, int minimumSize) | |
| checkBufferGT | back to summary |
|---|---|
| private static void checkBufferGT(int bufferSize, int maximumSize) | |
| checkFunctions | back to summary |
|---|---|
| public static boolean checkFunctions(long... functions) Checks if any of the specified functions pointers is
| |
| checkFunctions | back to summary |
|---|---|
| public static boolean checkFunctions(FunctionProvider provider, PointerBuffer caps, int[] indices, String... functions) Checks if all functions are available in the function provider.
| |
| checkFunctions | back to summary |
|---|---|
| public static boolean checkFunctions(FunctionProviderLocal provider, long handle, PointerBuffer caps, int[] indices, String... functions) Checks if all functions are available in the function provider.
| |
| checkFunctions | back to summary |
|---|---|
| public static boolean checkFunctions(FunctionProvider provider, long[] caps, int[] indices, String... functions) Checks if all functions are available in the function provider.
| |
| checkGT | back to summary |
|---|---|
| public static void checkGT(Buffer buf, int size) | |
| checkGT | back to summary |
|---|---|
| public static void checkGT(CustomBuffer<?> buf, int size) | |
| checkNT | back to summary |
|---|---|
| public static void checkNT(int[] buf) Ensures that the specified array is null-terminated. | |
| checkNT | back to summary |
|---|---|
| public static void checkNT(int[] buf, int terminator) Ensures that the specified array is terminated with the specified terminator. | |
| checkNT | back to summary |
|---|---|
| public static void checkNT(long[] buf) Ensures that the specified array is null-terminated. | |
| checkNT | back to summary |
|---|---|
| public static void checkNT(float[] buf) Ensures that the specified array is null-terminated. | |
| checkNT | back to summary |
|---|---|
| public static void checkNT(IntBuffer buf) Ensures that the specified IntBuffer is null-terminated. | |
| checkNT | back to summary |
|---|---|
| public static void checkNT(IntBuffer buf, int terminator) Ensures that the specified IntBuffer is terminated with the specified terminator. | |
| checkNT | back to summary |
|---|---|
| public static void checkNT(LongBuffer buf) Ensures that the specified LongBuffer is null-terminated. | |
| checkNT | back to summary |
|---|---|
| public static void checkNT(FloatBuffer buf) Ensures that the specified FloatBuffer is null-terminated. | |
| checkNT | back to summary |
|---|---|
| public static void checkNT(PointerBuffer buf) Ensures that the specified PointerBuffer is null-terminated. | |
| checkNT | back to summary |
|---|---|
| public static void checkNT(PointerBuffer buf, long terminator) Ensures that the specified PointerBuffer is terminated with the specified terminator. | |
| checkNT1 | back to summary |
|---|---|
| public static void checkNT1(ByteBuffer buf) Ensures that the specified ByteBuffer is null-terminated (last byte equal to 0). | |
| checkNT1Safe | back to summary |
|---|---|
| public static void checkNT1Safe(ByteBuffer buf) | |
| checkNT2 | back to summary |
|---|---|
| public static void checkNT2(ByteBuffer buf) Ensures that the specified ByteBuffer is null-terminated (last 2 bytes equal to 0). | |
| checkNT2Safe | back to summary |
|---|---|
| public static void checkNT2Safe(ByteBuffer buf) | |
| checkNTSafe | back to summary |
|---|---|
| public static void checkNTSafe(int[] buf) | |
| checkNTSafe | back to summary |
|---|---|
| public static void checkNTSafe(int[] buf, int terminator) | |
| checkNTSafe | back to summary |
|---|---|
| public static void checkNTSafe(long[] buf) | |
| checkNTSafe | back to summary |
|---|---|
| public static void checkNTSafe(float[] buf) | |
| checkNTSafe | back to summary |
|---|---|
| public static void checkNTSafe(IntBuffer buf) | |
| checkNTSafe | back to summary |
|---|---|
| public static void checkNTSafe(IntBuffer buf, int terminator) | |
| checkNTSafe | back to summary |
|---|---|
| public static void checkNTSafe(LongBuffer buf) | |
| checkNTSafe | back to summary |
|---|---|
| public static void checkNTSafe(FloatBuffer buf) | |
| checkNTSafe | back to summary |
|---|---|
| public static void checkNTSafe(PointerBuffer buf) | |
| checkNTSafe | back to summary |
|---|---|
| public static void checkNTSafe(PointerBuffer buf, long terminator) | |
| checkSafe | back to summary |
|---|---|
| public static void checkSafe(short[] buf, int size) | |
| checkSafe | back to summary |
|---|---|
| public static void checkSafe(int[] buf, int size) | |
| checkSafe | back to summary |
|---|---|
| public static void checkSafe(long[] buf, int size) | |
| checkSafe | back to summary |
|---|---|
| public static void checkSafe(float[] buf, int size) | |
| checkSafe | back to summary |
|---|---|
| public static void checkSafe(double[] buf, int size) | |
| checkSafe | back to summary |
|---|---|
| public static void checkSafe(Buffer buf, int size) | |
| checkSafe | back to summary |
|---|---|
| public static void checkSafe(Buffer buf, long size) | |
| checkSafe | back to summary |
|---|---|
| public static void checkSafe(CustomBuffer<?> buf, int size) | |
| checkSafe | back to summary |
|---|---|
| public static void checkSafe(CustomBuffer<?> buf, long size) | |
| lengthSafe | back to summary |
|---|---|
| public static int lengthSafe(short[] array) | |
| lengthSafe | back to summary |
|---|---|
| public static int lengthSafe(int[] array) | |
| lengthSafe | back to summary |
|---|---|
| public static int lengthSafe(long[] array) | |
| lengthSafe | back to summary |
|---|---|
| public static int lengthSafe(float[] array) | |
| lengthSafe | back to summary |
|---|---|
| public static int lengthSafe(double[] array) | |
| remainingSafe | back to summary |
|---|---|
| public static int remainingSafe(Buffer buffer) | |
| remainingSafe | back to summary |
|---|---|
| public static int remainingSafe(CustomBuffer<?> buffer) | |
| reportMissing | back to summary |
|---|---|
| public static boolean reportMissing(String api, String extension) | |
| throwIAE | back to summary |
|---|---|
| private static void throwIAE(int bufferSize, int minimumSize) | |
| throwIAEGT | back to summary |
|---|---|
| private static void throwIAEGT(int bufferSize, int maximumSize) | |