/** * Creates a new program cache associated with the specified context and * devices. * The cached programs are built against the specified device and also * only the binaries linked to that device are stored. * @param context the OpenCL context * @param device the OpenCL device */ public ProgramCache(Context context, Device device) { this.context = context; this.device = device; if (JmeSystem.isLowPermissions()) { tmpFolder = null; } else { tmpFolder = JmeSystem.getStorageFolder(); } }
if (JmeSystem.isLowPermissions()){ url = ClasspathLocator.class.getResource("/" + name); }else{
if (JmeSystem.isLowPermissions()) { throw new UnsupportedOperationException("JVM is running under " + "reduced permissions. Cannot load native libraries.");
protected void loadNatives() { if (JmeSystem.isLowPermissions()) { return; } if ("LWJGL".equals(settings.getAudioRenderer())) { NativeLibraryLoader.loadNativeLibrary("openal", true); } if (settings.useJoysticks()) { NativeLibraryLoader.loadNativeLibrary("jinput", true); NativeLibraryLoader.loadNativeLibrary("jinput-dx8", true); } NativeLibraryLoader.loadNativeLibrary("lwjgl", true); } protected int getNumSamplesToUse() {
protected void loadNatives() { if (JmeSystem.isLowPermissions()) { return; } if ("LWJGL".equals(settings.getAudioRenderer())) { NativeLibraryLoader.loadNativeLibrary("openal-lwjgl3", true); } if (NativeLibraryLoader.isUsingNativeBullet()) { NativeLibraryLoader.loadNativeLibrary("bulletjme", true); } NativeLibraryLoader.loadNativeLibrary("glfw-lwjgl3", true); NativeLibraryLoader.loadNativeLibrary("jemalloc-lwjgl3", true); NativeLibraryLoader.loadNativeLibrary("lwjgl3", true); }
if (!JmeSystem.isLowPermissions()){
if (!JmeSystem.isLowPermissions()) {
if (!JmeSystem.isLowPermissions()) {
/** * Creates a new program cache associated with the specified context and * devices. * The cached programs are built against the specified device and also * only the binaries linked to that device are stored. * @param context the OpenCL context * @param device the OpenCL device */ public ProgramCache(Context context, Device device) { this.context = context; this.device = device; if (JmeSystem.isLowPermissions()) { tmpFolder = null; } else { tmpFolder = JmeSystem.getStorageFolder(); } }
if (JmeSystem.isLowPermissions()){ url = ClasspathLocator.class.getResource("/" + name); }else{
if (JmeSystem.isLowPermissions()){ url = ClasspathLocator.class.getResource("/" + name); }else{
if (JmeSystem.isLowPermissions()) { throw new UnsupportedOperationException("JVM is running under " + "reduced permissions. Cannot load native libraries.");
if (!JmeSystem.isLowPermissions()){
if (!JmeSystem.isLowPermissions()) {
protected void loadNatives() { if (JmeSystem.isLowPermissions()) { return; } if ("LWJGL".equals(settings.getAudioRenderer())) { NativeLibraryLoader.loadNativeLibrary("openal", true); } if (settings.useJoysticks()) { NativeLibraryLoader.loadNativeLibrary("jinput", true); NativeLibraryLoader.loadNativeLibrary("jinput-dx8", true); } if (NativeLibraryLoader.isUsingNativeBullet()) { NativeLibraryLoader.loadNativeLibrary("bulletjme", true); } NativeLibraryLoader.loadNativeLibrary("lwjgl", true); }