|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.lwjgl.LWJGLUtil
public class LWJGLUtil
Internal library methods
Nested Class Summary | |
---|---|
static interface |
LWJGLUtil.TokenFilter
Simple interface for Field filtering. |
Field Summary | |
---|---|
static boolean |
CHECKS
|
static boolean |
DEBUG
Debug flag. |
static java.nio.ByteBuffer |
LWJGLIcon16x16
LWJGL Logo - 16 by 16 pixels |
static java.nio.ByteBuffer |
LWJGLIcon32x32
LWJGL Logo - 32 by 32 pixels |
static int |
PLATFORM_LINUX
|
static java.lang.String |
PLATFORM_LINUX_NAME
|
static int |
PLATFORM_MACOSX
|
static java.lang.String |
PLATFORM_MACOSX_NAME
|
static int |
PLATFORM_WINDOWS
|
static java.lang.String |
PLATFORM_WINDOWS_NAME
|
Constructor Summary | |
---|---|
LWJGLUtil()
|
Method Summary | |
---|---|
static java.util.Map<java.lang.Integer,java.lang.String> |
getClassTokens(LWJGLUtil.TokenFilter filter,
java.util.Map<java.lang.Integer,java.lang.String> target,
java.lang.Class... tokenClasses)
Returns a map of public static final integer fields in the specified classes, to their String representations. |
static java.util.Map<java.lang.Integer,java.lang.String> |
getClassTokens(LWJGLUtil.TokenFilter filter,
java.util.Map<java.lang.Integer,java.lang.String> target,
java.lang.Iterable<java.lang.Class> tokenClasses)
Returns a map of public static final integer fields in the specified classes, to their String representations. |
static java.lang.String[] |
getLibraryPaths(java.lang.String libname,
java.lang.String[] platform_lib_names,
java.lang.ClassLoader classloader)
Locates the paths required by a library. |
static java.lang.String[] |
getLibraryPaths(java.lang.String libname,
java.lang.String platform_lib_name,
java.lang.ClassLoader classloader)
Locates the paths required by a library. |
static int |
getPlatform()
|
static java.lang.String |
getPlatformName()
|
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. |
static void |
log(java.lang.String msg)
Prints the given message to System.err if DEBUG is true. |
static java.lang.String |
toHexString(int value)
Returns a string representation of the integer argument as an unsigned integer in base 16. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int PLATFORM_LINUX
public static final int PLATFORM_MACOSX
public static final int PLATFORM_WINDOWS
public static final java.lang.String PLATFORM_LINUX_NAME
public static final java.lang.String PLATFORM_MACOSX_NAME
public static final java.lang.String PLATFORM_WINDOWS_NAME
public static final java.nio.ByteBuffer LWJGLIcon16x16
public static final java.nio.ByteBuffer LWJGLIcon32x32
public static final boolean DEBUG
public static final boolean CHECKS
Constructor Detail |
---|
public LWJGLUtil()
Method Detail |
---|
public static int getPlatform()
PLATFORM_WINDOWS
,
PLATFORM_LINUX
,
PLATFORM_MACOSX
public static java.lang.String getPlatformName()
PLATFORM_WINDOWS_NAME
,
PLATFORM_LINUX_NAME
,
PLATFORM_MACOSX_NAME
public static java.lang.String[] getLibraryPaths(java.lang.String libname, java.lang.String platform_lib_name, java.lang.ClassLoader classloader)
libname
- Local Library Name to search the classloader with ("openal").platform_lib_name
- The native library name ("libopenal.so")classloader
- The classloader to ask for library paths
public static java.lang.String[] getLibraryPaths(java.lang.String libname, java.lang.String[] platform_lib_names, java.lang.ClassLoader classloader)
libname
- Local Library Name to search the classloader with ("openal").platform_lib_names
- The list of possible library names ("libopenal.so")classloader
- The classloader to ask for library paths
public static void log(java.lang.String msg)
msg
- Message to printpublic static boolean isMacOSXEqualsOrBetterThan(int major_required, int minor_required)
public static java.util.Map<java.lang.Integer,java.lang.String> getClassTokens(LWJGLUtil.TokenFilter filter, java.util.Map<java.lang.Integer,java.lang.String> target, java.lang.Class... tokenClasses)
This method is useful when debugging to quickly identify values returned from the AL/GL/CL APIs.
filter
- the filter to use (optional)target
- the target map (optional)tokenClasses
- an array of classes to get tokens from
public static java.util.Map<java.lang.Integer,java.lang.String> getClassTokens(LWJGLUtil.TokenFilter filter, java.util.Map<java.lang.Integer,java.lang.String> target, java.lang.Iterable<java.lang.Class> tokenClasses)
This method is useful when debugging to quickly identify values returned from the AL/GL/CL APIs.
filter
- the filter to use (optional)target
- the target map (optional)tokenClasses
- the classes to get tokens from
public static java.lang.String toHexString(int value)
value
- the integer value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |