Internal library methods
| Modifier and Type | Class and Description |
|---|---|
| public static interface | LWJGLUtil.
Simple interface for Field filtering. |
| Modifier and Type | Field and Description |
|---|---|
| public static final boolean | |
| public static final boolean | DEBUG
Debug flag. |
| private static final String | |
| private static final String | |
| public static final ByteBuffer | LWJGLIcon16x16
LWJGL Logo - 16 by 16 pixels |
| public static final ByteBuffer | LWJGLIcon32x32
LWJGL Logo - 32 by 32 pixels |
| private static final int | |
| public static final int | |
| public static final String | |
| public static final int | |
| public static final String | |
| public static final int | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static void | |
| public static Map | Returns: the token mapthe filter to use (optional) filter,the target map (optional) target, final Class<T>... an array of classes to get tokens from tokenClasses)Returns a map of public static final integer fields in the specified classes, to their String representations. |
| public static Map | Returns: the token mapthe filter to use (optional) filter,the target map (optional) target, final Iterable<Class<T>> the classes to get tokens from tokenClasses)Returns a map of public static final integer fields in the specified classes, to their String representations. |
| public static String[] | Returns: Paths to located libraries, if anyLocal Library Name to search the classloader with ("openal"). libname, String The native library name ("libopenal.so") platform_lib_name, ClassLoader The classloader to ask for library paths classloader)Locates the paths required by a library. |
| public static String[] | Returns: Paths to located libraries, if anyLocal Library Name to search the classloader with ("openal"). libname, String[] The list of possible library names ("libopenal.so") platform_lib_names, ClassLoader The classloader to ask for library paths classloader)Locates the paths required by a library. |
| private static String | Returns: Absolute path to library if found, otherwise nullName of library to search for libname, final ClassLoader Classloader to use classloader)Tries to locate named library from the current ClassLoader This method exists because native libraries are loaded from native code, and as such is exempt from ClassLoader library loading rutines. |
| public static int | |
| public static String | |
| public static boolean | |
| public static Integer | Returns: the property valuethe integer property name property_name)Gets an integer property as a privileged action. |
| public static Integer | Returns: the property valuethe integer property name property_name, final int the default value to use if the property is not defined default_val)Gets an integer property as a privileged action. |
| private static String | |
| public static boolean | isMacOSXEqualsOrBetterThan(int major_required, int minor_required)
Method to determine if the current system is running a version of Mac OS X better than the given version. |
| private static ByteBuffer | |
| public static void | |
| public static String | Returns: a platform-dependent native library name.the name of the library. name)Wraps |
| public static String | Returns: the hex string representationthe integer value value)Returns a string representation of the integer argument as an unsigned integer in base 16. |
| CHECKS | back to summary |
|---|---|
| public static final boolean CHECKS | |
| DEBUG | back to summary |
|---|---|
| public static final boolean DEBUG Debug flag. | |
| LWJGL_ICON_DATA_16x16 | back to summary |
|---|---|
| private static final String LWJGL_ICON_DATA_16x16 | |
| LWJGL_ICON_DATA_32x32 | back to summary |
|---|---|
| private static final String LWJGL_ICON_DATA_32x32 | |
| LWJGLIcon16x16 | back to summary |
|---|---|
| public static final ByteBuffer LWJGLIcon16x16 LWJGL Logo - 16 by 16 pixels | |
| LWJGLIcon32x32 | back to summary |
|---|---|
| public static final ByteBuffer LWJGLIcon32x32 LWJGL Logo - 32 by 32 pixels | |
| PLATFORM | back to summary |
|---|---|
| private static final int PLATFORM | |
| PLATFORM_LINUX | back to summary |
|---|---|
| public static final int PLATFORM_LINUX | |
| PLATFORM_LINUX_NAME | back to summary |
|---|---|
| public static final String PLATFORM_LINUX_NAME | |
| PLATFORM_MACOSX | back to summary |
|---|---|
| public static final int PLATFORM_MACOSX | |
| PLATFORM_MACOSX_NAME | back to summary |
|---|---|
| public static final String PLATFORM_MACOSX_NAME | |
| PLATFORM_WINDOWS | back to summary |
|---|---|
| public static final int PLATFORM_WINDOWS | |
| PLATFORM_WINDOWS_NAME | back to summary |
|---|---|
| public static final String PLATFORM_WINDOWS_NAME | |
| LWJGLUtil | back to summary |
|---|---|
| public LWJGLUtil() | |
| execPrivileged | back to summary |
|---|---|
| pack-priv static void execPrivileged(final String[] cmd_array) throws Exception | |
| getClassTokens | back to summary |
|---|---|
| public static Map Returns a map of public static final integer fields in the specified classes, to their String representations. An optional filter can be specified to only include specific fields. The target map may be null, in which case a new map is allocated and returned. This method is useful when debugging to quickly identify values returned from the AL/GL/CL APIs. | |
| getClassTokens | back to summary |
|---|---|
| public static Map Returns a map of public static final integer fields in the specified classes, to their String representations. An optional filter can be specified to only include specific fields. The target map may be null, in which case a new map is allocated and returned. This method is useful when debugging to quickly identify values returned from the AL/GL/CL APIs. | |
| getLibraryPaths | back to summary |
|---|---|
| public static String[] getLibraryPaths(String libname, String platform_lib_name, ClassLoader classloader) Locates the paths required by a library.
| |
| getLibraryPaths | back to summary |
|---|---|
| public static String[] getLibraryPaths(String libname, String[] platform_lib_names, ClassLoader classloader) Locates the paths required by a library.
| |
| getPathFromClassLoader | back to summary |
|---|---|
| private static String getPathFromClassLoader(final String libname, final ClassLoader classloader) Tries to locate named library from the current ClassLoader This method exists because native libraries are loaded from native code, and as such is exempt from ClassLoader library loading rutines. It therefore always fails. We therefore invoke the protected method of the ClassLoader to see if it can locate it.
| |
| getPlatform | back to summary |
|---|---|
public static int getPlatform()
| |
| getPlatformName | back to summary |
|---|---|
public static String getPlatformName()
| |
| getPrivilegedBoolean | back to summary |
|---|---|
| public static boolean getPrivilegedBoolean(final String property_name) Gets a boolean property as a privileged action. | |
| getPrivilegedInteger | back to summary |
|---|---|
| public static Integer getPrivilegedInteger(final String property_name) Gets an integer property as a privileged action. | |
| getPrivilegedInteger | back to summary |
|---|---|
| public static Integer getPrivilegedInteger(final String property_name, final int default_val) Gets an integer property as a privileged action. | |
| getPrivilegedProperty | back to summary |
|---|---|
| private static String getPrivilegedProperty(final String property_name) | |
| isMacOSXEqualsOrBetterThan | back to summary |
|---|---|
| public static boolean isMacOSXEqualsOrBetterThan(int major_required, int minor_required) Method to determine if the current system is running a version of Mac OS X better than the given version. This is only useful for Mac OS X specific code and will not work for any other platform. | |
| loadIcon | back to summary |
|---|---|
| private static ByteBuffer loadIcon(String data) | |
| log | back to summary |
|---|---|
| public static void log(CharSequence msg) Prints the given message to System.err if DEBUG is true.
| |
| mapLibraryName | back to summary |
|---|---|
| public static String mapLibraryName(String name) Wraps | |
| toHexString | back to summary |
|---|---|
| public static String toHexString(final int value) Returns a string representation of the integer argument as an unsigned integer in base 16. The string will be uppercase and will have a leading '0x'.
| |
| Modifier and Type | Method and Description |
|---|---|
| public boolean |
| accept | back to summary |
|---|---|
| public boolean accept(Field field, int value) Should return true if the specified Field passes the filter.
| |