mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-09 00:14:04 +00:00
New API for adapter queries
This commit is contained in:
parent
88b3bcabed
commit
307755b07c
3 changed files with 174 additions and 1 deletions
|
|
@ -80,6 +80,9 @@ public final class Display {
|
|||
static {
|
||||
System.loadLibrary(Sys.getLibraryName());
|
||||
init();
|
||||
if (Sys.DEBUG) {
|
||||
System.out.println("Adapter: "+getAdapter()+" Version: "+getVersion());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -254,4 +257,19 @@ public final class Display {
|
|||
* Native method to set the gamma ramp.
|
||||
*/
|
||||
private static native boolean setGammaRamp(FloatBuffer gammaRamp);
|
||||
|
||||
/**
|
||||
* Get the driver adapter string. This is a unique string describing the actual card's hardware, eg. "Geforce2", "PS2",
|
||||
* "Radeon9700". If the adapter cannot be determined, this function returns null.
|
||||
* @return a String
|
||||
*/
|
||||
public static native String getAdapter();
|
||||
|
||||
/**
|
||||
* Get the driver version. This is a vendor/adapter specific version string. If the version cannot be determined,
|
||||
* this function returns null.
|
||||
* @return a String
|
||||
*/
|
||||
public static native String getVersion();
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue