}
private static native int getDeviceCapsNative(int screen);
private static native String getDeviceIdNative(int screen);
private static ContextCapabilities getDeviceCaps(final int screen) {
ContextCapabilities d3dCaps = null;
D3DRenderQueue rq = D3DRenderQueue.getInstance();
rq.lock();
try {
class Result {
int caps;