Browse Source

Towards a working 3.4 bvuild: Get rid of jme3-ios since avian is deprecated and got removed from bintray, see jmonkeyengine#1611 for future iOS Support

MeFisto94 3 years ago
parent
commit
5a74e611e4
56 changed files with 15 additions and 7125 deletions
  1. 10 23
      build.gradle
  2. 2 2
      gradle.properties
  3. 1 1
      gradle/wrapper/gradle-wrapper.properties
  4. 0 11
      jme3-ios/GetClassLoader.patch
  5. 0 211
      jme3-ios/build.xml
  6. 0 36
      jme3-ios/build_avian.sh
  7. 0 104
      jme3-ios/ios-data/templates/ios.properties
  8. 0 474
      jme3-ios/ios-data/templates/project/jme-ios.xcodeproj/project.pbxproj
  9. 0 7
      jme3-ios/ios-data/templates/project/jme-ios.xcodeproj/project.xcworkspace/contents.xcworkspacedata
  10. BIN
      jme3-ios/ios-data/templates/project/jme-ios.xcodeproj/project.xcworkspace/xcuserdata/normenhansen.xcuserdatad/UserInterfaceState.xcuserstate
  11. 0 10
      jme3-ios/ios-data/templates/project/jme-ios.xcodeproj/project.xcworkspace/xcuserdata/normenhansen.xcuserdatad/WorkspaceSettings.xcsettings
  12. 0 86
      jme3-ios/ios-data/templates/project/jme-ios.xcodeproj/xcuserdata/normenhansen.xcuserdatad/xcschemes/hello.xcscheme
  13. 0 22
      jme3-ios/ios-data/templates/project/jme-ios.xcodeproj/xcuserdata/normenhansen.xcuserdatad/xcschemes/xcschememanagement.plist
  14. 0 27
      jme3-ios/ios-data/templates/project/jme-ios/Dummy.storyboard
  15. 0 2
      jme3-ios/ios-data/templates/project/jme-ios/en.lproj/InfoPlist.strings
  16. 0 252
      jme3-ios/ios-data/templates/project/jme-ios/iPad/en.lproj/MainWindow_iPad.xib
  17. 0 5
      jme3-ios/ios-data/templates/project/jme-ios/iPad/jmeAppDelegate_iPad.h
  18. 0 5
      jme3-ios/ios-data/templates/project/jme-ios/iPad/jmeAppDelegate_iPad.m
  19. 0 258
      jme3-ios/ios-data/templates/project/jme-ios/iPhone/en.lproj/MainWindow_iPhone.xib
  20. 0 5
      jme3-ios/ios-data/templates/project/jme-ios/iPhone/jmeAppDelegate_iPhone.h
  21. 0 5
      jme3-ios/ios-data/templates/project/jme-ios/iPhone/jmeAppDelegate_iPhone.m
  22. 0 51
      jme3-ios/ios-data/templates/project/jme-ios/jme-ios-Info.plist
  23. 0 14
      jme3-ios/ios-data/templates/project/jme-ios/jme-ios-Prefix.pch
  24. 0 27
      jme3-ios/ios-data/templates/project/jme-ios/jmeAppDelegate.h
  25. 0 339
      jme3-ios/ios-data/templates/project/jme-ios/jmeAppDelegate.m
  26. 0 28
      jme3-ios/ios-data/templates/project/jme-ios/logging.properties
  27. 0 9
      jme3-ios/ios-data/templates/project/jme-ios/main.m
  28. 0 130
      jme3-ios/ios-data/templates/src/JmeAppHarness.java
  29. 0 60
      jme3-ios/ios-data/templates/src/JmeAppHarness.m
  30. 0 2392
      jme3-ios/ios-data/templates/src/JmeIosGLES.m
  31. 0 41
      jme3-ios/ios-data/templates/src/boot.c
  32. 0 138
      jme3-ios/ios-data/templates/src/com_jme3_audio_ios_IosAL.c
  33. 0 173
      jme3-ios/ios-data/templates/src/com_jme3_audio_ios_IosAL.h
  34. 0 178
      jme3-ios/ios-data/templates/src/com_jme3_audio_ios_IosALC.c
  35. 0 77
      jme3-ios/ios-data/templates/src/com_jme3_audio_ios_IosALC.h
  36. 0 79
      jme3-ios/ios-data/templates/src/com_jme3_audio_ios_IosEFX.c
  37. 0 101
      jme3-ios/ios-data/templates/src/com_jme3_audio_ios_IosEFX.h
  38. 0 192
      jme3-ios/ios-data/templates/src/jme-ios.m
  39. 0 402
      jme3-ios/licenses.txt
  40. 0 6
      jme3-ios/manifest.mf
  41. 0 45
      jme3-ios/nbproject/build-impl.xml
  42. 0 8
      jme3-ios/nbproject/genfiles.properties
  43. 0 11
      jme3-ios/nbproject/project.properties
  44. 0 121
      jme3-ios/nbproject/project.xml
  45. 0 1
      jme3-ios/nbproject/suite.properties
  46. 0 7
      jme3-ios/src/com/jme3/gde/ios/Bundle.properties
  47. 0 58
      jme3-ios/src/com/jme3/gde/ios/IosImportantFiles.java
  48. 0 87
      jme3-ios/src/com/jme3/gde/ios/IosTool.java
  49. BIN
      jme3-ios/src/com/jme3/gde/ios/ios-data.zip
  50. 0 235
      jme3-ios/src/com/jme3/gde/ios/ios-targets.xml
  51. 0 4
      jme3-ios/src/com/jme3/gde/ios/layer.xml
  52. 0 9
      jme3-ios/src/com/jme3/gde/ios/panel/Bundle.properties
  53. 0 213
      jme3-ios/src/com/jme3/gde/ios/panel/IosCompositeProvider.java
  54. 0 146
      jme3-ios/src/com/jme3/gde/ios/panel/IosCustomizerPanel.form
  55. 0 194
      jme3-ios/src/com/jme3/gde/ios/panel/IosCustomizerPanel.java
  56. 2 3
      nbproject/project.properties

+ 10 - 23
build.gradle

@@ -101,11 +101,9 @@ dependencies {
     corelibs dep("org.jmonkeyengine:jme3-terrain", false, false)
 
     optlibs dep("org.jmonkeyengine:jme3-jbullet", false, false)
-    optlibs dep("org.jmonkeyengine:jme3-jogl", false, false)
     optlibs dep("org.jmonkeyengine:jme3-android", false, false)
     optlibs dep("org.jmonkeyengine:jme3-ios", false, false)
     optlibs dep("org.jmonkeyengine:jme3-android-native", false, false)
-    optlibs dep("org.jmonkeyengine:jme3-bullet-native-android", false, false)
     optlibs dep("org.jmonkeyengine:jme3-lwjgl3", false, false)
     optlibs dep("com.github.stephengold:Heart:6.0.0", false, false)
     optlibs dep("com.github.stephengold:Minie:3.0.0", false, false)
@@ -194,18 +192,19 @@ copyBaseLibs.inputs.files configurations.corelibs.resolve()
 copyBaseLibs.outputs.dir "jme3-core-baselibs/release/modules/ext/"
 copyBaseLibs.outputs.dir "jme3-core-libraries/release/modules/ext/"
 
-def isSourceOrJavadoc(dep){
+static def isSourceOrJavadoc(dep){
     return isSource(dep) || isJavadoc(dep)
 }
 
-def isSource(dep){
+static def isSource(dep){
     return dep.endsWith("-sources.jar")
 }
 
-def isJavadoc(dep){
+static def isJavadoc(dep){
     return dep.endsWith("-javadoc.jar")
 }
-def isJmeDep(dep) {
+
+static def isJmeDep(dep) {
     return dep.startsWith("jme3")
 }
 
@@ -231,7 +230,6 @@ task createBaseXml(dependsOn: configurations.corelibs) {
                 externalJarFiles.add(file)
 
             }
-
         }
 
         // collect base packages
@@ -241,9 +239,9 @@ task createBaseXml(dependsOn: configurations.corelibs) {
             file.entries().each { entry ->
                 if(entry.name.endsWith('.class')){
                     // TODO: "/" works on windows?
-                    def pathPart = entry.name.substring(0,entry.name.lastIndexOf('/'))
+                    def pathPart = entry.name.substring(0, Math.max(0, entry.name.lastIndexOf('/')))
                     def classPath = pathPart.replace('/','.');
-                    if(!packages.contains(classPath)){
+                    if(!classPath.empty && !packages.contains(classPath)){
                         packages.add(classPath)
                     }
                 }
@@ -257,9 +255,9 @@ task createBaseXml(dependsOn: configurations.corelibs) {
             file.entries().each { entry ->
                 if(entry.name.endsWith('.class')){
                     // TODO: "/" works on windows?
-                    def pathPart = entry.name.substring(0,entry.name.lastIndexOf('/'))
+                    def pathPart = entry.name.substring(0, Math.max(0, entry.name.lastIndexOf('/')))
                     def classPath = pathPart.replace('/','.');
-                    if(!extPackages.contains(classPath)){
+                    if (!classPath.empty && !extPackages.contains(classPath)){
                         extPackages.add(classPath)
                     }
                 }
@@ -625,18 +623,7 @@ task updateNetbeans(type: Exec, dependsOn: checkPlatformConfig) {
     }
 }
 
-task downloadAvian() {
-    doLast {
-        def avianFile = file("jme3-ios/src/com/jme3/gde/ios/avian-openjdk-mac.zip")
-
-        if (!avianFile.exists())
-        {
-            new URL("https://bintray.com/mefisto94/jme-sdk-storage/download_file?file_path=avian-openjdk-mac.zip").withInputStream{ i -> avianFile.withOutputStream{ it << i }}
-        }
-    }
-}
-
-task buildSdk(dependsOn: [copyBaseLibs, copyProjectLibs, createProjectXml, createBaseXml, copyTestSources, downloadAvian]) {
+task buildSdk(dependsOn: [copyBaseLibs, copyProjectLibs, createProjectXml, createBaseXml, copyTestSources]) {
     doLast {
         ant.propertyfile(file: "nbproject/project.properties") {
             entry( key: "plugins.version", value: "${jmeVersion}")

+ 2 - 2
gradle.properties

@@ -1,7 +1,7 @@
 # Version number used for plugins, only 3 numbers (e.g. 3.1.3)
-jmeVersion = 3.3.0
+jmeVersion = 3.4.0
 # Version used for application and settings folder, no spaces!
-jmeMainVersion = 3.3
+jmeMainVersion = 3.4
 # Version addition pre-alpha-svn, Stable, Beta
 #jmeVersionTag = SNAPSHOT
 # Increment this each time jmeVersionTag changes but jmeVersion stays the same

+ 1 - 1
gradle/wrapper/gradle-wrapper.properties

@@ -1,5 +1,5 @@
 distributionBase=GRADLE_USER_HOME
 distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-bin.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-6.9-bin.zip
 zipStoreBase=GRADLE_USER_HOME
 zipStorePath=wrapper/dists

+ 0 - 11
jme3-ios/GetClassLoader.patch

@@ -1,11 +0,0 @@
---- downloads/jdk7u/jdk/src/share/javavm/export/jvm.h	2016-08-21 11:55:38.000000000 +0200
-+++ downloads/jdk7u/jdk/src/share/javavm/export/jvm.h	2016-08-21 11:55:43.000000000 +0200
-@@ -437,6 +437,8 @@
- JNIEXPORT jobjectArray JNICALL
- JVM_GetClassInterfaces(JNIEnv *env, jclass cls);
- 
-+JNIEXPORT jobject JNICALL
-+JVM_GetClassLoader(JNIEnv *env, jclass cls);
-
- JNIEXPORT jboolean JNICALL
- JVM_IsInterface(JNIEnv *env, jclass cls);

+ 0 - 211
jme3-ios/build.xml

@@ -1,211 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- You may freely edit this file. See harness/README in the NetBeans platform -->
-<!-- for some information on what you could do (e.g. targets to override). -->
-<!-- If you delete this file and reopen the project it will be recreated. -->
-<project name="com.jme3.gde.ios" default="netbeans" basedir=".">
-    <description>Builds, tests, and runs the project com.jme3.gde.ios.</description>
-    <import file="nbproject/build-impl.xml"/>
-
-    <target name="init" depends="-zip-data,basic-init,files-init,build-init,-javac-init"/>
-    <target name="-zip-data" description="Zips mac stubs">
-        <delete file="src/com/jme3/gde/ios/ios-data.zip"/>
-        <zip destfile="src/com/jme3/gde/ios/ios-data.zip" update="false">
-            <zipfileset dir="ios-data" prefix=""/>
-        </zip>
-    </target>
-    
-    <target name="sources.error" unless="sources.available">
-<echo>Check needed folders:
- JDK binaries: ${avian.jdk.path.exists}
-  JDK sources: ${avian.jdk.src.path.exists}
-Avian sources: ${avian.src.path.exists}
-7zip LZMA SDK: ${avian.lzma.sdk.path.exists}</echo>
-        <fail>Avian or JDK sources not found! Please configure the avian and JDK source locations in the properties file!</fail>
-    </target>
-
-    <target name="sources.check">
-        <dirname property="dir.current" file="${ant.file}"/>
-        <property name="avian.jdk.path" value="${dir.current}/downloads/openjdk-1.7.0-u80-unofficial-macosx-x86_64-image"/>
-        <property name="avian.jdk.src.path" value="${dir.current}/downloads/jdk7u/jdk/src"/>
-        <property name="avian.src.path" value="${dir.current}/downloads/avian"/>
-        <property name="avian.lzma.sdk.path" value="${dir.current}/downloads/lzma-920"/>
-        <property name="avian.build.options" value="lzma-bootimage-openjdk-src"/>
-        
-        <condition property="avian.jdk.path.exists" else="false">
-            <available file="${avian.jdk.path}" type="dir"/>
-        </condition>
-        <condition property="avian.jdk.src.path.exists" else="false">
-            <available file="${avian.jdk.src.path}" type="dir"/>
-        </condition>
-        <condition property="avian.src.path.exists" else="false">
-            <available file="${avian.src.path}" type="dir"/>
-        </condition>
-        <condition property="avian.lzma.sdk.path.exists" else="false">
-            <available file="${avian.lzma.sdk.path}" type="dir"/>
-        </condition>
-        <condition property="sources.available">
-            <and>
-                <isTrue value="${avian.jdk.path.exists}"/>
-                <isTrue value="${avian.jdk.src.path.exists}"/>
-                <isTrue value="${avian.src.path.exists}"/>
-                <isTrue value="${avian.lzma.sdk.path.exists}"/>
-            </and>
-        </condition>
-    </target>
-
-    <target name="package-avian" depends="init, sources.check, sources.error" description="Builds and packages the avian library" if="sources.available">
-        <!--echo>Note to build avian you currently need to copy ar, libtool and ranlib
-from XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin
-to   XCode.app/Contents/Developer/usr/bin
-        </echo-->
-        <exec executable="make" dir="${avian.src.path}" failonerror="true">
-            <env key="JAVA_HOME" value="${avian.jdk.path}"/>
-            <arg line="clean"/>
-        </exec>
-        <exec executable="make" dir="${avian.src.path}" failonerror="true">
-            <env key="JAVA_HOME" value="${avian.jdk.path}"/>
-            <env key="JDK_SRC" value="${avian.jdk.src.path}"/>
-            <arg line="arch=arm"/>
-            <arg line="platform=ios"/>
-            <arg line="process=compile"/>
-            <arg line="openjdk='${avian.jdk.path}'"/>
-            <arg line="openjdk-src='${avian.jdk.src.path}'"/>
-            <arg line="lzma='${avian.lzma.sdk.path}'"/>
-            <arg line="bootimage=true"/>
-            <arg line="build/ios-arm-${avian.build.options}/bootimage-generator"/>
-            <arg line="build/ios-arm-${avian.build.options}/binaryToObject/binaryToObject"/>
-            <arg line="build/ios-arm-${avian.build.options}/classpath.jar"/>
-            <arg line="build/ios-arm-${avian.build.options}/libavian.a"/>
-        </exec>
-        <delete file="src/com/jme3/gde/ios/avian-openjdk-mac.zip" failonerror="false"/>
-        <zip destfile="src/com/jme3/gde/ios/avian-openjdk-mac.zip">
-            <zipfileset file="${avian.src.path}/build/ios-arm-${avian.build.options}/bootimage-generator" filemode="755" fullpath="avian-arm/bootimage-generator"/>
-            <zipfileset file="${avian.src.path}/build/ios-arm-${avian.build.options}/binaryToObject/binaryToObject" filemode="755" fullpath="avian-arm/binaryToObject"/>
-            <zipfileset file="${avian.src.path}/build/ios-arm-${avian.build.options}/libavian.a" fullpath="avian-arm/libavian.a"/>
-        </zip>
-        <zip destfile="src/com/jme3/gde/ios/avian-openjdk-mac.zip" update="true">
-            <zipfileset dir="${avian.src.path}/build/ios-arm-${avian.build.options}/classpath" prefix="classpath/">
-                <exclude name="**/java/awt/**"/>
-                <exclude name="**/apple/**"/>
-                <exclude name="**/javax/swing/**"/>
-                <exclude name="**/javax/sound/**"/>
-                <exclude name="**/javax/smartcardio/**"/>
-                <exclude name="**/sun/applet/**"/>
-                <exclude name="**/sun/audio/**"/>
-                <exclude name="**/sun/awt/**"/>
-                <exclude name="**/sun/corba/**"/>
-                <exclude name="**/sun/font/**"/>
-                <!--exclude name="**/sun/java2d/**"/-->
-                <exclude name="**/sun/lwawt/**"/>
-                <exclude name="**/sun/print/**"/>
-                <exclude name="**/sun/swing/**"/>
-                <exclude name="**/com/oracle/**"/>
-                
-                <!--crypto,demo,rmi,servicetag,tracing-->
-                <!--exclude name="**/com/sun/**"/>
-                 <exclude name="**/com/sun/accessibility/**"/>
-                 <exclude name="**/com/sun/activation/**"/-->
-                
-                <exclude name="**/com/sun/awt/**"/>
-                
-                <!--exclude name="**/com/sun/beans/**"/>
-                 <exclude name="**/com/sun/codemodel/**"/>
-                 <exclude name="**/com/sun/corba/**"/>
-                 <exclude name="**/com/sun/imageio/**"/>
-                 <exclude name="**/com/sun/istack/**"/>
-                 <exclude name="**/com/sun/jarsigner/**"/>
-                 <exclude name="**/com/sun/java/**"/>
-                 <exclude name="**/com/sun/java_cup/**"/>
-                 <exclude name="**/com/sun/javadoc/**"/>
-                 <exclude name="**/com/sun/jmx/**"/>
-                 <exclude name="**/com/sun/jndi/**"/>
-                 <exclude name="**/com/sun/management/**"/>
-                 <exclude name="**/com/sun/media/**"/>
-                 <exclude name="**/com/sun/mirror/**"/>
-                 <exclude name="**/com/sun/naming/**"/>
-                 <exclude name="**/com/sun/net/**"/>
-                 <exclude name="**/com/sun/nio/**"/>
-                 <exclude name="**/com/sun/org/**"/>
-                 <exclude name="**/com/sun/rowset/**"/>
-                 <exclude name="**/com/sun/security/**"/>
-                 <exclude name="**/com/sun/source/**"/>
-                 <exclude name="**/com/sun/swing/**"/>
-                 <exclude name="**/com/sun/tools/**"/>
-                 <exclude name="**/com/sun/xml/**"/-->
-            </zipfileset>
-        </zip>
-        <exec executable="make" dir="${avian.src.path}">
-            <env key="JAVA_HOME" value="${avian.jdk.path}"/>
-            <arg line="clean"/>
-        </exec>
-        <exec executable="make" dir="${avian.src.path}" failonerror="true">
-            <env key="JAVA_HOME" value="${avian.jdk.path}"/>
-            <arg line="arch=arm64"/>
-            <arg line="platform=ios"/>
-            <arg line="process=compile"/>
-            <arg line="openjdk='${avian.jdk.path}'"/>
-            <arg line="openjdk-src='${avian.jdk.src.path}'"/>
-            <arg line="lzma='${avian.lzma.sdk.path}'"/>
-            <arg line="bootimage=true"/>
-            <!--arg line="mode=debug"/-->
-            <arg line="build/ios-arm64-${avian.build.options}/bootimage-generator"/>
-            <arg line="build/ios-arm64-${avian.build.options}/binaryToObject/binaryToObject"/>
-            <arg line="build/ios-arm64-${avian.build.options}/classpath.jar"/>
-            <arg line="build/ios-arm64-${avian.build.options}/libavian.a"/>
-        </exec>
-        <zip destfile="src/com/jme3/gde/ios/avian-openjdk-mac.zip" update="true">
-            <zipfileset file="${avian.src.path}/build/ios-arm64-${avian.build.options}/bootimage-generator" filemode="755" fullpath="avian-arm64/bootimage-generator"/>
-            <zipfileset file="${avian.src.path}/build/ios-arm64-${avian.build.options}/binaryToObject/binaryToObject" filemode="755" fullpath="avian-arm64/binaryToObject"/>
-            <zipfileset file="${avian.src.path}/build/ios-arm64-${avian.build.options}/libavian.a" fullpath="avian-arm64/libavian.a"/>
-            <zipfileset file="${avian.src.path}/vm.pro" fullpath="vm.pro"/>
-            <zipfileset file="${avian.src.path}/openjdk.pro" fullpath="openjdk.pro"/>
-        </zip>
-        <exec executable="make" dir="${avian.src.path}">
-            <env key="JAVA_HOME" value="${avian.jdk.path}"/>
-            <arg line="clean"/>
-        </exec>
-        <exec executable="make" dir="${avian.src.path}" failonerror="true">
-            <env key="JAVA_HOME" value="${avian.jdk.path}"/>
-            <arg line="arch=x86_64"/>
-            <arg line="platform=ios"/>
-            <arg line="process=compile"/>
-            <arg line="openjdk='${avian.jdk.path}'"/>
-            <arg line="openjdk-src='${avian.jdk.src.path}'"/>
-            <arg line="lzma='${avian.lzma.sdk.path}'"/>
-            <arg line="bootimage=true"/>
-            <arg line="sim=true"/>
-            <arg line="build/ios-x86_64-${avian.build.options}/bootimage-generator"/>
-            <arg line="build/ios-x86_64-${avian.build.options}/binaryToObject/binaryToObject"/>
-            <arg line="build/ios-x86_64-${avian.build.options}/classpath.jar"/>
-            <arg line="build/ios-x86_64-${avian.build.options}/libavian.a"/>
-        </exec>
-        <zip destfile="src/com/jme3/gde/ios/avian-openjdk-mac.zip" update="true">
-            <zipfileset file="${avian.src.path}/build/ios-x86_64-${avian.build.options}/bootimage-generator" filemode="755" fullpath="avian-x86_64/bootimage-generator"/>
-            <zipfileset file="${avian.src.path}/build/ios-x86_64-${avian.build.options}/binaryToObject/binaryToObject" filemode="755" fullpath="avian-x86_64/binaryToObject"/>
-            <zipfileset file="${avian.src.path}/build/ios-x86_64-${avian.build.options}/libavian.a" fullpath="avian-x86_64/libavian.a"/>
-        </zip>
-        <!--<exec executable="make" dir="${avian.src.path}" failonerror="true">
-            <env key="JAVA_HOME" value="${avian.jdk.path}"/>
-            <arg line="arch=i386"/>
-            <arg line="platform=ios"/>
-            <arg line="process=compile"/>
-            <arg line="openjdk='${avian.jdk.path}'"/>
-            <arg line="openjdk-src='${avian.jdk.src.path}'"/>
-            <arg line="lzma='${avian.lzma.sdk.path}'"/>
-            <arg line="bootimage=true"/>
-            <arg line="sim=true"/>
-            <arg line="build/ios-i386-${avian.build.options}/bootimage-generator"/>
-            <arg line="build/ios-i386-${avian.build.options}/binaryToObject/binaryToObject"/>
-            <arg line="build/ios-i386-${avian.build.options}/classpath.jar"/>
-            <arg line="build/ios-i386-${avian.build.options}/libavian.a"/>
-        </exec>
-        <zip destfile="src/com/jme3/gde/ios/avian-openjdk-mac.zip" update="true">
-            <zipfileset file="${avian.src.path}/build/ios-i386-${avian.build.options}/bootimage-generator" filemode="755" fullpath="avian-i386/bootimage-generator"/>
-            <zipfileset file="${avian.src.path}/build/ios-i386-${avian.build.options}/binaryToObject/binaryToObject" filemode="755" fullpath="avian-i386/binaryToObject"/>
-            <zipfileset file="${avian.src.path}/build/ios-i386-${avian.build.options}/libavian.a" fullpath="avian-i386/libavian.a"/>
-            <zipfileset file="${avian.src.path}/vm.pro" fullpath="vm.pro"/>
-            <zipfileset file="${avian.src.path}/openjdk.pro" fullpath="openjdk.pro"/>
-        </zip>-->
-        
-    </target>
-</project>

+ 0 - 36
jme3-ios/build_avian.sh

@@ -1,36 +0,0 @@
-if [ ! -d downloads ]; then
-    mkdir downloads
-fi
-
-cd downloads
-
-openjdk="openjdk-1.7.0-u80-unofficial-macosx-x86_64-image"
-
-if [ ! -d "$openjdk" ]; then
-    curl -Of https://bitbucket.org/alexkasko/openjdk-unofficial-builds/downloads/$openjdk.zip
-    unzip $openjdk.zip
-fi
-
-if [ ! -d "jdk7u" ]; then
-    hg clone http://hg.openjdk.java.net/jdk7u/jdk7u/
-fi
-
-cd jdk7u
-bash get_source.sh
-cd jdk
-hg checkout jdk7u80-b32
-cd ../../
-
-patch -N downloads/jdk7u/jdk/src/share/javavm/export/jvm.h < GetClassLoader.patch
-
-if [ ! -d "avian" ]; then
-    git clone https://github.com/readytalk/avian.git
-fi
-
-if [ ! -d "lzma-920" ]; then
-    curl -Of http://readytalk.github.io/avian-web/lzma920.tar.bz2
-    (mkdir -p lzma-920 && cd lzma-920 && tar xjf ../lzma920.tar.bz2)
-fi
-
-cd ../
-ant package-avian

+ 0 - 104
jme3-ios/ios-data/templates/ios.properties

@@ -1,104 +0,0 @@
-# Properties file for iOS cross-compilation with Avian / OpenJDK
-
-# these normally don't change
-ios.platform=ios
-ios.arm.flag=armv7
-ios.arm64.flag=arm64
-ios.i386.flag=i386
-ios.x86_64.flag=x86_64
-
-# java build paths
-ios.build.classpath.dir=build/ios-classpath
-ios.java.classes.dir=${ios.build.classpath.dir}/build
-ios.build.classes.dir=${ios.build.classpath.dir}/classpath
-ios.build.resources.jar=${ios.build.classpath.dir}/resources.jar
-ios.classpath.checkfile=${ios.build.classpath.dir}/.classpath.last
-ios.jar.excludes=jme3-desktop-*.jar, \
-jme3-blender-*.jar, \
-jme3-lwjgl-*.jar, \
-jme3-lwjgl-platform-*-natives-*.jar, \
-jme3-bullet-native-*.jar, \
-jinput.jar, \
-lwjgl.jar
-ios.classpath.excludes=**/de/lessvoid/nifty/ClipboardAWT.class
-
-# native build paths
-ios.build.arch.dir=build/ios-${ios.arch}
-ios.build.libs.dir=${ios.build.arch.dir}/libs
-ios.build.libs.file=${ios.build.arch.dir}/libs.list
-ios.build.resources.o=${ios.build.libs.dir}/resources-jar.o
-ios.build.bootimage.o=${ios.build.libs.dir}/bootimage-bin.o
-ios.build.codeimage.o=${ios.build.libs.dir}/codeimage-bin.o
-ios.images.checkfile=${ios.build.arch.dir}/.binaries.last
-
-# proguard properties -> adapt these if you get missing classes on iOS
-ios.proguard.vm.path=${ios.avian.path}/vm.pro
-ios.proguard.openjdk.path=${ios.avian.path}/openjdk.pro
-ios.proguard.options=-keep public class com.jme3.system.ios.*{public *;} \
--keep public class * extends com.jme3.system.ios.IosHarness{public *;} \
--keep public class * extends com.jme3.app.Application{public *;} \
--keep public class * extends com.jme3.system.JmeSystemDelegate{public *;} \
--keep public class * extends com.jme3.scene.control.*{public *;} \
--keep public class * extends com.jme3.scene.Node{public *;} \
--keep public class * implements com.jme3.renderer.Renderer{public *;} \
--keep public class * implements com.jme3.asset.AssetLoader{public *;} \
--keep public class * implements com.jme3.asset.AssetLocator{public *;} \
--keep public class * implements de.lessvoid.nifty.screen.ScreenController{public *;} \
--keep public class de.lessvoid.nifty.loaderv2.types.** { public *;} \
--keep public class de.lessvoid.nifty.controls.** { public *; } \
--keep public class de.lessvoid.nifty.input.** { public *; } \
--keep public class de.lessvoid.nifty.effects.impl.** { public *;} \
--keepclassmembers class com.jme3.audio.plugins.NativeVorbisFile{public *;} \
--keep public class * implements javax.xml.parsers.SAXParserFactory{public *;} \
--keep public class com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl \
--keep public class com.sun.org.apache.xerces.internal.impl.dv.dtd.DTDDVFactoryImpl \
--keep public class sun.nio.fs.MacOSXFileSystemProvider \
--keep public class * extends java.nio.charset.Charset { *; } \
--keep public class java.util.zip.Deflater { *; } \
--keep public class java.io.FileNotFoundException { *; } \
--keep public class java.lang.reflect.Proxy { *; } \
--keep public class java.lang.reflect.InvocationHandler { *; } \
--keep public class java.util.logging.ConsoleHandler \
--keep public class java.util.logging.FileHandler \
--keep public class java.util.logging.SimpleFormatter \
--keep public class java.util.logging.LogManager { *; } \
--keep public class org.xmlpull.mxp1.MXParserFactory { *; }
-
-# native compile
-ios.cc.source.dir=ios/src
-ios.cc.cache=${ios.build.arch.dir}/.nativebuild.cache
-ios.cc.compiler=clang
-ios.cc.cflags=-D__IPHONE_OS_VERSION_MIN_REQUIRED=30202 \
--fobjc-abi-version=2 -fobjc-legacy-dispatch \
--I/System/Library/Frameworks/JavaVM.framework/Headers \
--I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/JavaVM.framework/Headers/
-
-# arm/i386 section, resolved in build file to ios.avian.bootimage-generator etc.
-ios.avian.path.arm=${ios.avian.path}/avian-arm
-ios.avian.path.arm64=${ios.avian.path}/avian-arm64
-ios.avian.path.i386=${ios.avian.path}/avian-i386
-ios.avian.path.x86_64=${ios.avian.path}/avian-x86_64
-ios.avian.arm.classpath=${ios.avian.path}/classpath
-ios.avian.arm64.classpath=${ios.avian.path}/classpath
-ios.avian.i386.classpath=${ios.avian.path}/classpath
-ios.avian.x86_64.classpath=${ios.avian.path}/classpath
-
-ios.avian.arm.bootimage-generator=${ios.avian.path.arm}/bootimage-generator
-ios.avian.arm.generator=${ios.avian.path.arm}/generator
-ios.avian.arm.converter=${ios.avian.path.arm}/binaryToObject
-ios.avian.arm.binary=${ios.avian.path.arm}/libavian.a
-ios.avian.arm64.bootimage-generator=${ios.avian.path.arm64}/bootimage-generator
-ios.avian.arm64.generator=${ios.avian.path.arm64}/generator
-ios.avian.arm64.converter=${ios.avian.path.arm64}/binaryToObject
-ios.avian.arm64.binary=${ios.avian.path.arm64}/libavian.a
-ios.avian.i386.bootimage-generator=${ios.avian.path.i386}/bootimage-generator
-ios.avian.i386.generator=${ios.avian.path.i386}/generator
-ios.avian.i386.converter=${ios.avian.path.i386}/binaryToObject
-ios.avian.i386.binary=${ios.avian.path.i386}/libavian.a
-ios.avian.x86_64.bootimage-generator=${ios.avian.path.x86_64}/bootimage-generator
-ios.avian.x86_64.generator=${ios.avian.path.x86_64}/generator
-ios.avian.x86_64.converter=${ios.avian.path.x86_64}/binaryToObject
-ios.avian.x86_64.binary=${ios.avian.path.x86_64}/libavian.a
-
-# XCode project
-ios.xcode.project.dir=ios/project

+ 0 - 474
jme3-ios/ios-data/templates/project/jme-ios.xcodeproj/project.pbxproj

@@ -1,474 +0,0 @@
-// !$*UTF8*$!
-{
-	archiveVersion = 1;
-	classes = {
-	};
-	objectVersion = 46;
-	objects = {
-
-/* Begin PBXBuildFile section */
-		08914C09142A826B00991C80 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 08914C08142A826B00991C80 /* UIKit.framework */; };
-		08914C0B142A826B00991C80 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 08914C0A142A826B00991C80 /* Foundation.framework */; };
-		08914C0D142A826B00991C80 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 08914C0C142A826B00991C80 /* CoreGraphics.framework */; };
-		08914C13142A826B00991C80 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 08914C11142A826B00991C80 /* InfoPlist.strings */; };
-		08914C15142A826B00991C80 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 08914C14142A826B00991C80 /* main.m */; };
-		08914C19142A826B00991C80 /* jmeAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 08914C18142A826B00991C80 /* jmeAppDelegate.m */; };
-		08914C1D142A826B00991C80 /* jmeAppDelegate_iPhone.m in Sources */ = {isa = PBXBuildFile; fileRef = 08914C1C142A826B00991C80 /* jmeAppDelegate_iPhone.m */; };
-		08914C20142A826B00991C80 /* MainWindow_iPhone.xib in Resources */ = {isa = PBXBuildFile; fileRef = 08914C1E142A826B00991C80 /* MainWindow_iPhone.xib */; };
-		08914C24142A826B00991C80 /* jmeAppDelegate_iPad.m in Sources */ = {isa = PBXBuildFile; fileRef = 08914C23142A826B00991C80 /* jmeAppDelegate_iPad.m */; };
-		08914C27142A826B00991C80 /* MainWindow_iPad.xib in Resources */ = {isa = PBXBuildFile; fileRef = 08914C25142A826B00991C80 /* MainWindow_iPad.xib */; };
-		BBE3F3AD25E54070009CA0E9 /* Dummy.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = BBE3F3AC25E54070009CA0E9 /* Dummy.storyboard */; };
-		CC69FB0F16374681009585B5 /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CC69FB0E16374681009585B5 /* OpenGLES.framework */; };
-		CCD3ADB518AC38BE00FE8DC5 /* OpenAL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CCD3ADB418AC38BE00FE8DC5 /* OpenAL.framework */; };
-		CCFD653F163755D80020EFDD /* GLKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CCFD653E163755D80020EFDD /* GLKit.framework */; };
-		E9E6261018A052130084FC12 /* logging.properties in Resources */ = {isa = PBXBuildFile; fileRef = E9E6260F18A052130084FC12 /* logging.properties */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXFileReference section */
-		08914C04142A826B00991C80 /* jme-ios.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "jme-ios.app"; sourceTree = BUILT_PRODUCTS_DIR; };
-		08914C08142A826B00991C80 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
-		08914C0A142A826B00991C80 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
-		08914C0C142A826B00991C80 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
-		08914C10142A826B00991C80 /* jme-ios-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "jme-ios-Info.plist"; sourceTree = "<group>"; };
-		08914C12142A826B00991C80 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
-		08914C14142A826B00991C80 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
-		08914C16142A826B00991C80 /* jme-ios-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "jme-ios-Prefix.pch"; sourceTree = "<group>"; };
-		08914C17142A826B00991C80 /* jmeAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = jmeAppDelegate.h; sourceTree = "<group>"; };
-		08914C18142A826B00991C80 /* jmeAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = jmeAppDelegate.m; sourceTree = "<group>"; };
-		08914C1B142A826B00991C80 /* jmeAppDelegate_iPhone.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = jmeAppDelegate_iPhone.h; path = iPhone/jmeAppDelegate_iPhone.h; sourceTree = "<group>"; };
-		08914C1C142A826B00991C80 /* jmeAppDelegate_iPhone.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = jmeAppDelegate_iPhone.m; path = iPhone/jmeAppDelegate_iPhone.m; sourceTree = "<group>"; };
-		08914C1F142A826B00991C80 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = iPhone/en.lproj/MainWindow_iPhone.xib; sourceTree = "<group>"; };
-		08914C22142A826B00991C80 /* jmeAppDelegate_iPad.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = jmeAppDelegate_iPad.h; path = iPad/jmeAppDelegate_iPad.h; sourceTree = "<group>"; };
-		08914C23142A826B00991C80 /* jmeAppDelegate_iPad.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = jmeAppDelegate_iPad.m; path = iPad/jmeAppDelegate_iPad.m; sourceTree = "<group>"; };
-		08914C26142A826B00991C80 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = iPad/en.lproj/MainWindow_iPad.xib; sourceTree = "<group>"; };
-		BBE3F3AC25E54070009CA0E9 /* Dummy.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = Dummy.storyboard; sourceTree = "<group>"; };
-		CC69FB0E16374681009585B5 /* OpenGLES.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGLES.framework; path = System/Library/Frameworks/OpenGLES.framework; sourceTree = SDKROOT; };
-		CCD3ADB418AC38BE00FE8DC5 /* OpenAL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenAL.framework; path = System/Library/Frameworks/OpenAL.framework; sourceTree = SDKROOT; };
-		CCFD653E163755D80020EFDD /* GLKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = GLKit.framework; path = System/Library/Frameworks/GLKit.framework; sourceTree = SDKROOT; };
-		E9E6260F18A052130084FC12 /* logging.properties */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = logging.properties; sourceTree = "<group>"; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
-		08914C01142A826B00991C80 /* Frameworks */ = {
-			isa = PBXFrameworksBuildPhase;
-			buildActionMask = 2147483647;
-			files = (
-				08914C09142A826B00991C80 /* UIKit.framework in Frameworks */,
-				08914C0B142A826B00991C80 /* Foundation.framework in Frameworks */,
-				08914C0D142A826B00991C80 /* CoreGraphics.framework in Frameworks */,
-				CCD3ADB518AC38BE00FE8DC5 /* OpenAL.framework in Frameworks */,
-				CC69FB0F16374681009585B5 /* OpenGLES.framework in Frameworks */,
-				CCFD653F163755D80020EFDD /* GLKit.framework in Frameworks */,
-			);
-			runOnlyForDeploymentPostprocessing = 0;
-		};
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
-		08914BF9142A826B00991C80 = {
-			isa = PBXGroup;
-			children = (
-				08914C0E142A826B00991C80 /* jme-ios */,
-				08914C07142A826B00991C80 /* Frameworks */,
-				08914C05142A826B00991C80 /* Products */,
-			);
-			sourceTree = "<group>";
-		};
-		08914C05142A826B00991C80 /* Products */ = {
-			isa = PBXGroup;
-			children = (
-				08914C04142A826B00991C80 /* jme-ios.app */,
-			);
-			name = Products;
-			sourceTree = "<group>";
-		};
-		08914C07142A826B00991C80 /* Frameworks */ = {
-			isa = PBXGroup;
-			children = (
-				CCD3ADB418AC38BE00FE8DC5 /* OpenAL.framework */,
-				CCFD653E163755D80020EFDD /* GLKit.framework */,
-				CC69FB0E16374681009585B5 /* OpenGLES.framework */,
-				08914C08142A826B00991C80 /* UIKit.framework */,
-				08914C0A142A826B00991C80 /* Foundation.framework */,
-				08914C0C142A826B00991C80 /* CoreGraphics.framework */,
-			);
-			name = Frameworks;
-			sourceTree = "<group>";
-		};
-		08914C0E142A826B00991C80 /* jme-ios */ = {
-			isa = PBXGroup;
-			children = (
-				08914C17142A826B00991C80 /* jmeAppDelegate.h */,
-				08914C18142A826B00991C80 /* jmeAppDelegate.m */,
-				08914C1A142A826B00991C80 /* iPhone */,
-				08914C21142A826B00991C80 /* iPad */,
-				08914C0F142A826B00991C80 /* Supporting Files */,
-				BBE3F3AC25E54070009CA0E9 /* Dummy.storyboard */,
-			);
-			path = "jme-ios";
-			sourceTree = "<group>";
-		};
-		08914C0F142A826B00991C80 /* Supporting Files */ = {
-			isa = PBXGroup;
-			children = (
-				08914C10142A826B00991C80 /* jme-ios-Info.plist */,
-				08914C11142A826B00991C80 /* InfoPlist.strings */,
-				08914C14142A826B00991C80 /* main.m */,
-				08914C16142A826B00991C80 /* jme-ios-Prefix.pch */,
-				E9E6260F18A052130084FC12 /* logging.properties */,
-			);
-			name = "Supporting Files";
-			sourceTree = "<group>";
-		};
-		08914C1A142A826B00991C80 /* iPhone */ = {
-			isa = PBXGroup;
-			children = (
-				08914C1B142A826B00991C80 /* jmeAppDelegate_iPhone.h */,
-				08914C1C142A826B00991C80 /* jmeAppDelegate_iPhone.m */,
-				08914C1E142A826B00991C80 /* MainWindow_iPhone.xib */,
-			);
-			name = iPhone;
-			sourceTree = "<group>";
-		};
-		08914C21142A826B00991C80 /* iPad */ = {
-			isa = PBXGroup;
-			children = (
-				08914C22142A826B00991C80 /* jmeAppDelegate_iPad.h */,
-				08914C23142A826B00991C80 /* jmeAppDelegate_iPad.m */,
-				08914C25142A826B00991C80 /* MainWindow_iPad.xib */,
-			);
-			name = iPad;
-			sourceTree = "<group>";
-		};
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
-		08914C03142A826B00991C80 /* jme-ios */ = {
-			isa = PBXNativeTarget;
-			buildConfigurationList = 08914C2A142A826B00991C80 /* Build configuration list for PBXNativeTarget "jme-ios" */;
-			buildPhases = (
-				08914C00142A826B00991C80 /* Sources */,
-				08914C01142A826B00991C80 /* Frameworks */,
-				08914C02142A826B00991C80 /* Resources */,
-			);
-			buildRules = (
-			);
-			dependencies = (
-			);
-			name = "jme-ios";
-			productName = hello;
-			productReference = 08914C04142A826B00991C80 /* jme-ios.app */;
-			productType = "com.apple.product-type.application";
-		};
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
-		08914BFB142A826B00991C80 /* Project object */ = {
-			isa = PBXProject;
-			attributes = {
-				LastUpgradeCheck = 1130;
-				ORGANIZATIONNAME = jmonkeyengine.org;
-				TargetAttributes = {
-					08914C03142A826B00991C80 = {
-						DevelopmentTeam = X9TVYA7QX5;
-					};
-				};
-			};
-			buildConfigurationList = 08914BFE142A826B00991C80 /* Build configuration list for PBXProject "jme-ios" */;
-			compatibilityVersion = "Xcode 3.2";
-			developmentRegion = English;
-			hasScannedForEncodings = 0;
-			knownRegions = (
-				English,
-				en,
-			);
-			mainGroup = 08914BF9142A826B00991C80;
-			productRefGroup = 08914C05142A826B00991C80 /* Products */;
-			projectDirPath = "";
-			projectRoot = "";
-			targets = (
-				08914C03142A826B00991C80 /* jme-ios */,
-			);
-		};
-/* End PBXProject section */
-
-/* Begin PBXResourcesBuildPhase section */
-		08914C02142A826B00991C80 /* Resources */ = {
-			isa = PBXResourcesBuildPhase;
-			buildActionMask = 2147483647;
-			files = (
-				BBE3F3AD25E54070009CA0E9 /* Dummy.storyboard in Resources */,
-				E9E6261018A052130084FC12 /* logging.properties in Resources */,
-				08914C13142A826B00991C80 /* InfoPlist.strings in Resources */,
-				08914C20142A826B00991C80 /* MainWindow_iPhone.xib in Resources */,
-				08914C27142A826B00991C80 /* MainWindow_iPad.xib in Resources */,
-			);
-			runOnlyForDeploymentPostprocessing = 0;
-		};
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
-		08914C00142A826B00991C80 /* Sources */ = {
-			isa = PBXSourcesBuildPhase;
-			buildActionMask = 2147483647;
-			files = (
-				08914C15142A826B00991C80 /* main.m in Sources */,
-				08914C19142A826B00991C80 /* jmeAppDelegate.m in Sources */,
-				08914C1D142A826B00991C80 /* jmeAppDelegate_iPhone.m in Sources */,
-				08914C24142A826B00991C80 /* jmeAppDelegate_iPad.m in Sources */,
-			);
-			runOnlyForDeploymentPostprocessing = 0;
-		};
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-		08914C11142A826B00991C80 /* InfoPlist.strings */ = {
-			isa = PBXVariantGroup;
-			children = (
-				08914C12142A826B00991C80 /* en */,
-			);
-			name = InfoPlist.strings;
-			sourceTree = "<group>";
-		};
-		08914C1E142A826B00991C80 /* MainWindow_iPhone.xib */ = {
-			isa = PBXVariantGroup;
-			children = (
-				08914C1F142A826B00991C80 /* en */,
-			);
-			name = MainWindow_iPhone.xib;
-			sourceTree = "<group>";
-		};
-		08914C25142A826B00991C80 /* MainWindow_iPad.xib */ = {
-			isa = PBXVariantGroup;
-			children = (
-				08914C26142A826B00991C80 /* en */,
-			);
-			name = MainWindow_iPad.xib;
-			sourceTree = "<group>";
-		};
-/* End PBXVariantGroup section */
-
-/* Begin XCBuildConfiguration section */
-		08914C28142A826B00991C80 /* Debug */ = {
-			isa = XCBuildConfiguration;
-			buildSettings = {
-				ALWAYS_SEARCH_USER_PATHS = NO;
-				CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
-				CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
-				CLANG_WARN_BOOL_CONVERSION = YES;
-				CLANG_WARN_COMMA = YES;
-				CLANG_WARN_CONSTANT_CONVERSION = YES;
-				CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
-				CLANG_WARN_EMPTY_BODY = YES;
-				CLANG_WARN_ENUM_CONVERSION = YES;
-				CLANG_WARN_INFINITE_RECURSION = YES;
-				CLANG_WARN_INT_CONVERSION = YES;
-				CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
-				CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
-				CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
-				CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
-				CLANG_WARN_STRICT_PROTOTYPES = YES;
-				CLANG_WARN_SUSPICIOUS_MOVE = YES;
-				CLANG_WARN_UNREACHABLE_CODE = YES;
-				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
-				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
-				COPY_PHASE_STRIP = NO;
-				ENABLE_STRICT_OBJC_MSGSEND = YES;
-				ENABLE_TESTABILITY = YES;
-				GCC_C_LANGUAGE_STANDARD = gnu99;
-				GCC_DYNAMIC_NO_PIC = NO;
-				GCC_NO_COMMON_BLOCKS = YES;
-				GCC_OPTIMIZATION_LEVEL = 0;
-				GCC_PREPROCESSOR_DEFINITIONS = (
-					"DEBUG=1",
-					"$(inherited)",
-				);
-				GCC_SYMBOLS_PRIVATE_EXTERN = NO;
-				GCC_VERSION = "";
-				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
-				GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
-				GCC_WARN_ABOUT_RETURN_TYPE = YES;
-				GCC_WARN_UNDECLARED_SELECTOR = YES;
-				GCC_WARN_UNINITIALIZED_AUTOS = YES;
-				GCC_WARN_UNUSED_FUNCTION = YES;
-				GCC_WARN_UNUSED_VARIABLE = YES;
-				HEADER_SEARCH_PATHS = (
-					/System/Library/Frameworks/JavaVM.framework/Headers,
-					/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/JavaVM.framework/Headers/,
-				);
-				IPHONEOS_DEPLOYMENT_TARGET = 9.0;
-				ONLY_ACTIVE_ARCH = YES;
-				OTHER_LDFLAGS = (
-					"-filelist",
-					"../../build/ios-arm/libs.list",
-					"-filelist",
-					"../../build/ios-arm64/libs.list",
-					"-filelist",
-					"../../build/ios-x86_64/libs.list",
-					"-lz",
-					"-rdynamic",
-					"-force_cpusubtype_ALL",
-				);
-				SDKROOT = iphoneos;
-				TARGETED_DEVICE_FAMILY = "1,2";
-				VALID_ARCHS = "armv7 arm64 x86_64";
-			};
-			name = Debug;
-		};
-		08914C29142A826B00991C80 /* Release */ = {
-			isa = XCBuildConfiguration;
-			buildSettings = {
-				ALWAYS_SEARCH_USER_PATHS = NO;
-				CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
-				CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
-				CLANG_WARN_BOOL_CONVERSION = YES;
-				CLANG_WARN_COMMA = YES;
-				CLANG_WARN_CONSTANT_CONVERSION = YES;
-				CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
-				CLANG_WARN_EMPTY_BODY = YES;
-				CLANG_WARN_ENUM_CONVERSION = YES;
-				CLANG_WARN_INFINITE_RECURSION = YES;
-				CLANG_WARN_INT_CONVERSION = YES;
-				CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
-				CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
-				CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
-				CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
-				CLANG_WARN_STRICT_PROTOTYPES = YES;
-				CLANG_WARN_SUSPICIOUS_MOVE = YES;
-				CLANG_WARN_UNREACHABLE_CODE = YES;
-				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
-				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
-				COPY_PHASE_STRIP = YES;
-				ENABLE_STRICT_OBJC_MSGSEND = YES;
-				GCC_C_LANGUAGE_STANDARD = gnu99;
-				GCC_NO_COMMON_BLOCKS = YES;
-				GCC_VERSION = "";
-				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
-				GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
-				GCC_WARN_ABOUT_RETURN_TYPE = YES;
-				GCC_WARN_UNDECLARED_SELECTOR = YES;
-				GCC_WARN_UNINITIALIZED_AUTOS = YES;
-				GCC_WARN_UNUSED_FUNCTION = YES;
-				GCC_WARN_UNUSED_VARIABLE = YES;
-				HEADER_SEARCH_PATHS = (
-					/System/Library/Frameworks/JavaVM.framework/Headers,
-					/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/JavaVM.framework/Headers/,
-				);
-				IPHONEOS_DEPLOYMENT_TARGET = 9.0;
-				OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
-				OTHER_LDFLAGS = (
-					"-filelist",
-					"../../build/ios-arm/libs.list",
-					"-filelist",
-					"../../build/ios-arm64/libs.list",
-					"-filelist",
-					"../../build/ios-x86_64/libs.list",
-					"-lz",
-					"-rdynamic",
-					"-force_cpusubtype_ALL",
-				);
-				SDKROOT = iphoneos;
-				TARGETED_DEVICE_FAMILY = "1,2";
-				VALIDATE_PRODUCT = YES;
-				VALID_ARCHS = "armv7 arm64 x86_64";
-			};
-			name = Release;
-		};
-		08914C2B142A826B00991C80 /* Debug */ = {
-			isa = XCBuildConfiguration;
-			buildSettings = {
-				CLANG_ENABLE_OBJC_WEAK = YES;
-				CODE_SIGN_IDENTITY = "iPhone Developer";
-				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
-				DEVELOPMENT_TEAM = X9TVYA7QX5;
-				ENABLE_BITCODE = NO;
-				GCC_PRECOMPILE_PREFIX_HEADER = YES;
-				GCC_PREFIX_HEADER = "jme-ios/jme-ios-Prefix.pch";
-				GCC_VERSION = "";
-				HEADER_SEARCH_PATHS = (
-					/System/Library/Frameworks/JavaVM.framework/Headers,
-					/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/JavaVM.framework/Headers/,
-				);
-				INFOPLIST_FILE = "jme-ios/jme-ios-Info.plist";
-				IPHONEOS_DEPLOYMENT_TARGET = 9.0;
-				OTHER_CODE_SIGN_FLAGS = "--deep";
-				OTHER_LDFLAGS = (
-					"-filelist",
-					"../../build/ios-arm/libs.list",
-					"-filelist",
-					"../../build/ios-arm64/libs.list",
-					"-filelist",
-					"../../build/ios-x86_64/libs.list",
-					"-lz",
-					"-rdynamic",
-					"-force_cpusubtype_ALL",
-				);
-				PRODUCT_BUNDLE_IDENTIFIER = "com.jmonkeyengine.jme-ios";
-				PRODUCT_NAME = "jme-ios";
-				PROVISIONING_PROFILE = "";
-				VALID_ARCHS = "armv7 arm64 x86_64";
-				WRAPPER_EXTENSION = app;
-			};
-			name = Debug;
-		};
-		08914C2C142A826B00991C80 /* Release */ = {
-			isa = XCBuildConfiguration;
-			buildSettings = {
-				CLANG_ENABLE_OBJC_WEAK = YES;
-				CODE_SIGN_IDENTITY = "iPhone Developer";
-				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
-				DEVELOPMENT_TEAM = X9TVYA7QX5;
-				ENABLE_BITCODE = NO;
-				GCC_PRECOMPILE_PREFIX_HEADER = YES;
-				GCC_PREFIX_HEADER = "jme-ios/jme-ios-Prefix.pch";
-				GCC_VERSION = "";
-				HEADER_SEARCH_PATHS = (
-					/System/Library/Frameworks/JavaVM.framework/Headers,
-					/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/JavaVM.framework/Headers/,
-				);
-				INFOPLIST_FILE = "jme-ios/jme-ios-Info.plist";
-				IPHONEOS_DEPLOYMENT_TARGET = 9.0;
-				OTHER_LDFLAGS = (
-					"-filelist",
-					"../../build/ios-arm/libs.list",
-					"-filelist",
-					"../../build/ios-arm64/libs.list",
-					"-filelist",
-					"../../build/ios-x86_64/libs.list",
-					"-lz",
-					"-rdynamic",
-					"-force_cpusubtype_ALL",
-				);
-				PRODUCT_BUNDLE_IDENTIFIER = "com.jmonkeyengine.jme-ios";
-				PRODUCT_NAME = "jme-ios";
-				PROVISIONING_PROFILE = "";
-				VALID_ARCHS = "armv7 arm64 x86_64";
-				WRAPPER_EXTENSION = app;
-			};
-			name = Release;
-		};
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
-		08914BFE142A826B00991C80 /* Build configuration list for PBXProject "jme-ios" */ = {
-			isa = XCConfigurationList;
-			buildConfigurations = (
-				08914C28142A826B00991C80 /* Debug */,
-				08914C29142A826B00991C80 /* Release */,
-			);
-			defaultConfigurationIsVisible = 0;
-			defaultConfigurationName = Release;
-		};
-		08914C2A142A826B00991C80 /* Build configuration list for PBXNativeTarget "jme-ios" */ = {
-			isa = XCConfigurationList;
-			buildConfigurations = (
-				08914C2B142A826B00991C80 /* Debug */,
-				08914C2C142A826B00991C80 /* Release */,
-			);
-			defaultConfigurationIsVisible = 0;
-			defaultConfigurationName = Release;
-		};
-/* End XCConfigurationList section */
-	};
-	rootObject = 08914BFB142A826B00991C80 /* Project object */;
-}

+ 0 - 7
jme3-ios/ios-data/templates/project/jme-ios.xcodeproj/project.xcworkspace/contents.xcworkspacedata

@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Workspace
-   version = "1.0">
-   <FileRef
-      location = "self:jme-ios.xcodeproj">
-   </FileRef>
-</Workspace>

BIN
jme3-ios/ios-data/templates/project/jme-ios.xcodeproj/project.xcworkspace/xcuserdata/normenhansen.xcuserdatad/UserInterfaceState.xcuserstate


+ 0 - 10
jme3-ios/ios-data/templates/project/jme-ios.xcodeproj/project.xcworkspace/xcuserdata/normenhansen.xcuserdatad/WorkspaceSettings.xcsettings

@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
-	<key>HasAskedToTakeAutomaticSnapshotBeforeSignificantChanges</key>
-	<true/>
-	<key>SnapshotAutomaticallyBeforeSignificantChanges</key>
-	<true/>
-</dict>
-</plist>

+ 0 - 86
jme3-ios/ios-data/templates/project/jme-ios.xcodeproj/xcuserdata/normenhansen.xcuserdatad/xcschemes/hello.xcscheme

@@ -1,86 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Scheme
-   LastUpgradeVersion = "0450"
-   version = "1.3">
-   <BuildAction
-      parallelizeBuildables = "YES"
-      buildImplicitDependencies = "YES">
-      <BuildActionEntries>
-         <BuildActionEntry
-            buildForTesting = "YES"
-            buildForRunning = "YES"
-            buildForProfiling = "YES"
-            buildForArchiving = "YES"
-            buildForAnalyzing = "YES">
-            <BuildableReference
-               BuildableIdentifier = "primary"
-               BlueprintIdentifier = "08914C03142A826B00991C80"
-               BuildableName = "jme-ios.app"
-               BlueprintName = "jme-ios"
-               ReferencedContainer = "container:jme-ios.xcodeproj">
-            </BuildableReference>
-         </BuildActionEntry>
-      </BuildActionEntries>
-   </BuildAction>
-   <TestAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
-      shouldUseLaunchSchemeArgsEnv = "YES"
-      buildConfiguration = "Debug">
-      <Testables>
-      </Testables>
-      <MacroExpansion>
-         <BuildableReference
-            BuildableIdentifier = "primary"
-            BlueprintIdentifier = "08914C03142A826B00991C80"
-            BuildableName = "jme-ios.app"
-            BlueprintName = "jme-ios"
-            ReferencedContainer = "container:jme-ios.xcodeproj">
-         </BuildableReference>
-      </MacroExpansion>
-   </TestAction>
-   <LaunchAction
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
-      launchStyle = "0"
-      useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Debug"
-      ignoresPersistentStateOnLaunch = "NO"
-      debugDocumentVersioning = "YES"
-      allowLocationSimulation = "YES">
-      <BuildableProductRunnable>
-         <BuildableReference
-            BuildableIdentifier = "primary"
-            BlueprintIdentifier = "08914C03142A826B00991C80"
-            BuildableName = "jme-ios.app"
-            BlueprintName = "jme-ios"
-            ReferencedContainer = "container:jme-ios.xcodeproj">
-         </BuildableReference>
-      </BuildableProductRunnable>
-      <AdditionalOptions>
-      </AdditionalOptions>
-   </LaunchAction>
-   <ProfileAction
-      shouldUseLaunchSchemeArgsEnv = "YES"
-      savedToolIdentifier = ""
-      useCustomWorkingDirectory = "NO"
-      buildConfiguration = "Release"
-      debugDocumentVersioning = "YES">
-      <BuildableProductRunnable>
-         <BuildableReference
-            BuildableIdentifier = "primary"
-            BlueprintIdentifier = "08914C03142A826B00991C80"
-            BuildableName = "jme-ios.app"
-            BlueprintName = "jme-ios"
-            ReferencedContainer = "container:jme-ios.xcodeproj">
-         </BuildableReference>
-      </BuildableProductRunnable>
-   </ProfileAction>
-   <AnalyzeAction
-      buildConfiguration = "Debug">
-   </AnalyzeAction>
-   <ArchiveAction
-      buildConfiguration = "Release"
-      revealArchiveInOrganizer = "YES">
-   </ArchiveAction>
-</Scheme>

+ 0 - 22
jme3-ios/ios-data/templates/project/jme-ios.xcodeproj/xcuserdata/normenhansen.xcuserdatad/xcschemes/xcschememanagement.plist

@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
-	<key>SchemeUserState</key>
-	<dict>
-		<key>hello.xcscheme</key>
-		<dict>
-			<key>orderHint</key>
-			<integer>0</integer>
-		</dict>
-	</dict>
-	<key>SuppressBuildableAutocreation</key>
-	<dict>
-		<key>08914C03142A826B00991C80</key>
-		<dict>
-			<key>primary</key>
-			<true/>
-		</dict>
-	</dict>
-</dict>
-</plist>

+ 0 - 27
jme3-ios/ios-data/templates/project/jme-ios/Dummy.storyboard

@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="15705" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
-    <device id="retina6_1" orientation="portrait" appearance="light"/>
-    <dependencies>
-        <deployment identifier="iOS"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15706"/>
-        <capability name="Safe area layout guides" minToolsVersion="9.0"/>
-        <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
-    </dependencies>
-    <scenes>
-        <!--View Controller-->
-        <scene sceneID="D10-0T-wYE">
-            <objects>
-                <viewController id="hFc-qA-Ss9" sceneMemberID="viewController">
-                    <view key="view" contentMode="scaleToFill" id="0DT-pd-vHB">
-                        <rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
-                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-                        <color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
-                        <viewLayoutGuide key="safeArea" id="Sxt-UA-qxL"/>
-                    </view>
-                </viewController>
-                <placeholder placeholderIdentifier="IBFirstResponder" id="abh-6n-3aV" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
-            </objects>
-            <point key="canvasLocation" x="-172" y="-209"/>
-        </scene>
-    </scenes>
-</document>

+ 0 - 2
jme3-ios/ios-data/templates/project/jme-ios/en.lproj/InfoPlist.strings

@@ -1,2 +0,0 @@
-/* Localized versions of Info.plist keys */
-

+ 0 - 252
jme3-ios/ios-data/templates/project/jme-ios/iPad/en.lproj/MainWindow_iPad.xib

@@ -1,252 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<archive type="com.apple.InterfaceBuilder3.CocoaTouch.iPad.XIB" version="7.10">
-	<data>
-		<int key="IBDocument.SystemTarget">1536</int>
-		<string key="IBDocument.SystemVersion">12C60</string>
-		<string key="IBDocument.InterfaceBuilderVersion">2843</string>
-		<string key="IBDocument.AppKitVersion">1187.34</string>
-		<string key="IBDocument.HIToolboxVersion">625.00</string>
-		<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
-			<string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
-			<string key="NS.object.0">1929</string>
-		</object>
-		<object class="NSArray" key="IBDocument.IntegratedClassDependencies">
-			<bool key="EncodedWithXMLCoder">YES</bool>
-			<string>IBGLKView</string>
-			<string>IBProxyObject</string>
-			<string>IBUICustomObject</string>
-			<string>IBUIWindow</string>
-		</object>
-		<object class="NSArray" key="IBDocument.PluginDependencies">
-			<bool key="EncodedWithXMLCoder">YES</bool>
-			<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
-		</object>
-		<object class="NSMutableDictionary" key="IBDocument.Metadata">
-			<string key="NS.key.0">PluginDependencyRecalculationVersion</string>
-			<integer value="1" key="NS.object.0"/>
-		</object>
-		<object class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
-			<bool key="EncodedWithXMLCoder">YES</bool>
-			<object class="IBProxyObject" id="841351856">
-				<string key="IBProxiedObjectIdentifier">IBFilesOwner</string>
-				<string key="targetRuntimeIdentifier">IBIPadFramework</string>
-			</object>
-			<object class="IBProxyObject" id="606714003">
-				<string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
-				<string key="targetRuntimeIdentifier">IBIPadFramework</string>
-			</object>
-			<object class="IBUIWindow" id="62075450">
-				<reference key="NSNextResponder"/>
-				<int key="NSvFlags">292</int>
-				<object class="NSMutableArray" key="NSSubviews">
-					<bool key="EncodedWithXMLCoder">YES</bool>
-					<object class="IBGLKView" id="599209716">
-						<reference key="NSNextResponder" ref="62075450"/>
-						<int key="NSvFlags">274</int>
-						<string key="NSFrame">{{0, 20}, {768, 1004}}</string>
-						<reference key="NSSuperview" ref="62075450"/>
-						<reference key="NSWindow"/>
-						<reference key="NSNextKeyView"/>
-						<string key="NSReuseIdentifierKey">_NS:9</string>
-						<bool key="IBUIOpaque">NO</bool>
-						<bool key="IBUIClipsSubviews">YES</bool>
-						<int key="IBUIContentMode">4</int>
-						<bool key="IBUIMultipleTouchEnabled">YES</bool>
-						<string key="targetRuntimeIdentifier">IBIPadFramework</string>
-						<bool key="IBGLKEnableSetNeedsDisplay">NO</bool>
-					</object>
-				</object>
-				<string key="NSFrameSize">{768, 1024}</string>
-				<reference key="NSSuperview"/>
-				<reference key="NSWindow"/>
-				<reference key="NSNextKeyView" ref="599209716"/>
-				<object class="NSColor" key="IBUIBackgroundColor">
-					<int key="NSColorSpace">1</int>
-					<bytes key="NSRGB">MSAxIDEAA</bytes>
-				</object>
-				<bool key="IBUIOpaque">NO</bool>
-				<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
-				<object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics">
-					<int key="IBUIStatusBarStyle">2</int>
-				</object>
-				<string key="targetRuntimeIdentifier">IBIPadFramework</string>
-				<bool key="IBUIResizesToFullScreen">YES</bool>
-			</object>
-			<object class="IBUICustomObject" id="250404236">
-				<string key="targetRuntimeIdentifier">IBIPadFramework</string>
-			</object>
-		</object>
-		<object class="IBObjectContainer" key="IBDocument.Objects">
-			<object class="NSMutableArray" key="connectionRecords">
-				<bool key="EncodedWithXMLCoder">YES</bool>
-				<object class="IBConnectionRecord">
-					<object class="IBCocoaTouchOutletConnection" key="connection">
-						<string key="label">delegate</string>
-						<reference key="source" ref="841351856"/>
-						<reference key="destination" ref="250404236"/>
-					</object>
-					<int key="connectionID">8</int>
-				</object>
-				<object class="IBConnectionRecord">
-					<object class="IBCocoaTouchOutletConnection" key="connection">
-						<string key="label">window</string>
-						<reference key="source" ref="250404236"/>
-						<reference key="destination" ref="62075450"/>
-					</object>
-					<int key="connectionID">7</int>
-				</object>
-				<object class="IBConnectionRecord">
-					<object class="IBCocoaTouchOutletConnection" key="connection">
-						<string key="label">glview</string>
-						<reference key="source" ref="250404236"/>
-						<reference key="destination" ref="599209716"/>
-					</object>
-					<int key="connectionID">16</int>
-				</object>
-			</object>
-			<object class="IBMutableOrderedSet" key="objectRecords">
-				<object class="NSArray" key="orderedObjects">
-					<bool key="EncodedWithXMLCoder">YES</bool>
-					<object class="IBObjectRecord">
-						<int key="objectID">0</int>
-						<object class="NSArray" key="object" id="0">
-							<bool key="EncodedWithXMLCoder">YES</bool>
-						</object>
-						<reference key="children" ref="1000"/>
-						<nil key="parent"/>
-					</object>
-					<object class="IBObjectRecord">
-						<int key="objectID">-1</int>
-						<reference key="object" ref="841351856"/>
-						<reference key="parent" ref="0"/>
-						<string key="objectName">File's Owner</string>
-					</object>
-					<object class="IBObjectRecord">
-						<int key="objectID">-2</int>
-						<reference key="object" ref="606714003"/>
-						<reference key="parent" ref="0"/>
-					</object>
-					<object class="IBObjectRecord">
-						<int key="objectID">2</int>
-						<reference key="object" ref="62075450"/>
-						<object class="NSMutableArray" key="children">
-							<bool key="EncodedWithXMLCoder">YES</bool>
-							<reference ref="599209716"/>
-						</object>
-						<reference key="parent" ref="0"/>
-					</object>
-					<object class="IBObjectRecord">
-						<int key="objectID">6</int>
-						<reference key="object" ref="250404236"/>
-						<reference key="parent" ref="0"/>
-					</object>
-					<object class="IBObjectRecord">
-						<int key="objectID">12</int>
-						<reference key="object" ref="599209716"/>
-						<reference key="parent" ref="62075450"/>
-					</object>
-				</object>
-			</object>
-			<object class="NSMutableDictionary" key="flattenedProperties">
-				<bool key="EncodedWithXMLCoder">YES</bool>
-				<object class="NSArray" key="dict.sortedKeys">
-					<bool key="EncodedWithXMLCoder">YES</bool>
-					<string>-1.CustomClassName</string>
-					<string>-1.IBPluginDependency</string>
-					<string>-2.CustomClassName</string>
-					<string>-2.IBPluginDependency</string>
-					<string>12.IBPluginDependency</string>
-					<string>2.IBPluginDependency</string>
-					<string>6.CustomClassName</string>
-					<string>6.IBPluginDependency</string>
-				</object>
-				<object class="NSArray" key="dict.values">
-					<bool key="EncodedWithXMLCoder">YES</bool>
-					<string>UIApplication</string>
-					<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
-					<string>UIResponder</string>
-					<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
-					<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
-					<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
-					<string>jmeAppDelegate_iPad</string>
-					<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
-				</object>
-			</object>
-			<object class="NSMutableDictionary" key="unlocalizedProperties">
-				<bool key="EncodedWithXMLCoder">YES</bool>
-				<reference key="dict.sortedKeys" ref="0"/>
-				<reference key="dict.values" ref="0"/>
-			</object>
-			<nil key="activeLocalization"/>
-			<object class="NSMutableDictionary" key="localizations">
-				<bool key="EncodedWithXMLCoder">YES</bool>
-				<reference key="dict.sortedKeys" ref="0"/>
-				<reference key="dict.values" ref="0"/>
-			</object>
-			<nil key="sourceID"/>
-			<int key="maxID">16</int>
-		</object>
-		<object class="IBClassDescriber" key="IBDocument.Classes">
-			<object class="NSMutableArray" key="referencedPartialClassDescriptions">
-				<bool key="EncodedWithXMLCoder">YES</bool>
-				<object class="IBPartialClassDescription">
-					<string key="className">jmeAppDelegate</string>
-					<string key="superclassName">NSObject</string>
-					<object class="NSMutableDictionary" key="outlets">
-						<bool key="EncodedWithXMLCoder">YES</bool>
-						<object class="NSArray" key="dict.sortedKeys">
-							<bool key="EncodedWithXMLCoder">YES</bool>
-							<string>glview</string>
-							<string>window</string>
-						</object>
-						<object class="NSArray" key="dict.values">
-							<bool key="EncodedWithXMLCoder">YES</bool>
-							<string>GLKView</string>
-							<string>UIWindow</string>
-						</object>
-					</object>
-					<object class="NSMutableDictionary" key="toOneOutletInfosByName">
-						<bool key="EncodedWithXMLCoder">YES</bool>
-						<object class="NSArray" key="dict.sortedKeys">
-							<bool key="EncodedWithXMLCoder">YES</bool>
-							<string>glview</string>
-							<string>window</string>
-						</object>
-						<object class="NSArray" key="dict.values">
-							<bool key="EncodedWithXMLCoder">YES</bool>
-							<object class="IBToOneOutletInfo">
-								<string key="name">glview</string>
-								<string key="candidateClassName">GLKView</string>
-							</object>
-							<object class="IBToOneOutletInfo">
-								<string key="name">window</string>
-								<string key="candidateClassName">UIWindow</string>
-							</object>
-						</object>
-					</object>
-					<object class="IBClassDescriptionSource" key="sourceIdentifier">
-						<string key="majorKey">IBProjectSource</string>
-						<string key="minorKey">./Classes/jmeAppDelegate.h</string>
-					</object>
-				</object>
-				<object class="IBPartialClassDescription">
-					<string key="className">jmeAppDelegate_iPad</string>
-					<string key="superclassName">jmeAppDelegate</string>
-					<object class="IBClassDescriptionSource" key="sourceIdentifier">
-						<string key="majorKey">IBProjectSource</string>
-						<string key="minorKey">./Classes/jmeAppDelegate_iPad.h</string>
-					</object>
-				</object>
-			</object>
-		</object>
-		<int key="IBDocument.localizationMode">0</int>
-		<string key="IBDocument.TargetRuntimeIdentifier">IBIPadFramework</string>
-		<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies">
-			<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3</string>
-			<integer value="3100" key="NS.object.0"/>
-		</object>
-		<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
-		<int key="IBDocument.defaultPropertyAccessControl">3</int>
-		<string key="IBCocoaTouchPluginVersion">1929</string>
-	</data>
-</archive>

+ 0 - 5
jme3-ios/ios-data/templates/project/jme-ios/iPad/jmeAppDelegate_iPad.h

@@ -1,5 +0,0 @@
-#import "jmeAppDelegate.h"
-
-@interface jmeAppDelegate_iPad : jmeAppDelegate
-
-@end

+ 0 - 5
jme3-ios/ios-data/templates/project/jme-ios/iPad/jmeAppDelegate_iPad.m

@@ -1,5 +0,0 @@
-#import "jmeAppDelegate_iPad.h"
-
-@implementation jmeAppDelegate_iPad
-
-@end

+ 0 - 258
jme3-ios/ios-data/templates/project/jme-ios/iPhone/en.lproj/MainWindow_iPhone.xib

@@ -1,258 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="7.10">
-	<data>
-		<int key="IBDocument.SystemTarget">1536</int>
-		<string key="IBDocument.SystemVersion">12C60</string>
-		<string key="IBDocument.InterfaceBuilderVersion">2843</string>
-		<string key="IBDocument.AppKitVersion">1187.34</string>
-		<string key="IBDocument.HIToolboxVersion">625.00</string>
-		<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
-			<string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
-			<string key="NS.object.0">1929</string>
-		</object>
-		<object class="NSArray" key="IBDocument.IntegratedClassDependencies">
-			<bool key="EncodedWithXMLCoder">YES</bool>
-			<string>IBGLKView</string>
-			<string>IBProxyObject</string>
-			<string>IBUICustomObject</string>
-			<string>IBUIWindow</string>
-		</object>
-		<object class="NSArray" key="IBDocument.PluginDependencies">
-			<bool key="EncodedWithXMLCoder">YES</bool>
-			<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
-		</object>
-		<object class="NSMutableDictionary" key="IBDocument.Metadata">
-			<string key="NS.key.0">PluginDependencyRecalculationVersion</string>
-			<integer value="1" key="NS.object.0"/>
-		</object>
-		<object class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
-			<bool key="EncodedWithXMLCoder">YES</bool>
-			<object class="IBProxyObject" id="841351856">
-				<string key="IBProxiedObjectIdentifier">IBFilesOwner</string>
-				<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
-			</object>
-			<object class="IBProxyObject" id="450319686">
-				<string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
-				<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
-			</object>
-			<object class="IBUICustomObject" id="987256611">
-				<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
-			</object>
-			<object class="IBUIWindow" id="380026005">
-				<reference key="NSNextResponder"/>
-				<int key="NSvFlags">1316</int>
-				<object class="NSMutableArray" key="NSSubviews">
-					<bool key="EncodedWithXMLCoder">YES</bool>
-					<object class="IBGLKView" id="97650301">
-						<reference key="NSNextResponder" ref="380026005"/>
-						<int key="NSvFlags">1298</int>
-						<string key="NSFrame">{{0, 20}, {320, 460}}</string>
-						<reference key="NSSuperview" ref="380026005"/>
-						<reference key="NSWindow"/>
-						<reference key="NSNextKeyView"/>
-						<string key="NSReuseIdentifierKey">_NS:9</string>
-						<bool key="IBUIOpaque">NO</bool>
-						<bool key="IBUIClipsSubviews">YES</bool>
-						<int key="IBUIContentMode">4</int>
-						<bool key="IBUIMultipleTouchEnabled">YES</bool>
-						<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
-						<bool key="IBGLKEnableSetNeedsDisplay">NO</bool>
-					</object>
-				</object>
-				<object class="NSPSMatrix" key="NSFrameMatrix"/>
-				<string key="NSFrameSize">{320, 480}</string>
-				<reference key="NSSuperview"/>
-				<reference key="NSWindow"/>
-				<reference key="NSNextKeyView" ref="97650301"/>
-				<object class="NSColor" key="IBUIBackgroundColor">
-					<int key="NSColorSpace">1</int>
-					<bytes key="NSRGB">MSAxIDEAA</bytes>
-				</object>
-				<bool key="IBUIOpaque">NO</bool>
-				<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
-				<object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
-				<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
-				<bool key="IBUIResizesToFullScreen">YES</bool>
-			</object>
-		</object>
-		<object class="IBObjectContainer" key="IBDocument.Objects">
-			<object class="NSMutableArray" key="connectionRecords">
-				<bool key="EncodedWithXMLCoder">YES</bool>
-				<object class="IBConnectionRecord">
-					<object class="IBCocoaTouchOutletConnection" key="connection">
-						<string key="label">delegate</string>
-						<reference key="source" ref="841351856"/>
-						<reference key="destination" ref="987256611"/>
-					</object>
-					<int key="connectionID">5</int>
-				</object>
-				<object class="IBConnectionRecord">
-					<object class="IBCocoaTouchOutletConnection" key="connection">
-						<string key="label">window</string>
-						<reference key="source" ref="987256611"/>
-						<reference key="destination" ref="380026005"/>
-					</object>
-					<int key="connectionID">6</int>
-				</object>
-				<object class="IBConnectionRecord">
-					<object class="IBCocoaTouchOutletConnection" key="connection">
-						<string key="label">glview</string>
-						<reference key="source" ref="987256611"/>
-						<reference key="destination" ref="97650301"/>
-					</object>
-					<int key="connectionID">10</int>
-				</object>
-			</object>
-			<object class="IBMutableOrderedSet" key="objectRecords">
-				<object class="NSArray" key="orderedObjects">
-					<bool key="EncodedWithXMLCoder">YES</bool>
-					<object class="IBObjectRecord">
-						<int key="objectID">0</int>
-						<object class="NSArray" key="object" id="0">
-							<bool key="EncodedWithXMLCoder">YES</bool>
-						</object>
-						<reference key="children" ref="1000"/>
-						<nil key="parent"/>
-					</object>
-					<object class="IBObjectRecord">
-						<int key="objectID">2</int>
-						<reference key="object" ref="380026005"/>
-						<object class="NSMutableArray" key="children">
-							<bool key="EncodedWithXMLCoder">YES</bool>
-							<reference ref="97650301"/>
-						</object>
-						<reference key="parent" ref="0"/>
-					</object>
-					<object class="IBObjectRecord">
-						<int key="objectID">-1</int>
-						<reference key="object" ref="841351856"/>
-						<reference key="parent" ref="0"/>
-						<string key="objectName">File's Owner</string>
-					</object>
-					<object class="IBObjectRecord">
-						<int key="objectID">4</int>
-						<reference key="object" ref="987256611"/>
-						<reference key="parent" ref="0"/>
-						<string key="objectName">App Delegate</string>
-					</object>
-					<object class="IBObjectRecord">
-						<int key="objectID">-2</int>
-						<reference key="object" ref="450319686"/>
-						<reference key="parent" ref="0"/>
-					</object>
-					<object class="IBObjectRecord">
-						<int key="objectID">9</int>
-						<reference key="object" ref="97650301"/>
-						<reference key="parent" ref="380026005"/>
-					</object>
-				</object>
-			</object>
-			<object class="NSMutableDictionary" key="flattenedProperties">
-				<bool key="EncodedWithXMLCoder">YES</bool>
-				<object class="NSArray" key="dict.sortedKeys">
-					<bool key="EncodedWithXMLCoder">YES</bool>
-					<string>-1.CustomClassName</string>
-					<string>-1.IBPluginDependency</string>
-					<string>-2.CustomClassName</string>
-					<string>-2.IBPluginDependency</string>
-					<string>2.IBAttributePlaceholdersKey</string>
-					<string>2.IBPluginDependency</string>
-					<string>4.CustomClassName</string>
-					<string>4.IBPluginDependency</string>
-					<string>9.IBPluginDependency</string>
-				</object>
-				<object class="NSArray" key="dict.values">
-					<bool key="EncodedWithXMLCoder">YES</bool>
-					<string>UIApplication</string>
-					<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
-					<string>UIResponder</string>
-					<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
-					<object class="NSMutableDictionary">
-						<bool key="EncodedWithXMLCoder">YES</bool>
-						<reference key="dict.sortedKeys" ref="0"/>
-						<reference key="dict.values" ref="0"/>
-					</object>
-					<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
-					<string>jmeAppDelegate_iPhone</string>
-					<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
-					<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
-				</object>
-			</object>
-			<object class="NSMutableDictionary" key="unlocalizedProperties">
-				<bool key="EncodedWithXMLCoder">YES</bool>
-				<reference key="dict.sortedKeys" ref="0"/>
-				<reference key="dict.values" ref="0"/>
-			</object>
-			<nil key="activeLocalization"/>
-			<object class="NSMutableDictionary" key="localizations">
-				<bool key="EncodedWithXMLCoder">YES</bool>
-				<reference key="dict.sortedKeys" ref="0"/>
-				<reference key="dict.values" ref="0"/>
-			</object>
-			<nil key="sourceID"/>
-			<int key="maxID">10</int>
-		</object>
-		<object class="IBClassDescriber" key="IBDocument.Classes">
-			<object class="NSMutableArray" key="referencedPartialClassDescriptions">
-				<bool key="EncodedWithXMLCoder">YES</bool>
-				<object class="IBPartialClassDescription">
-					<string key="className">jmeAppDelegate</string>
-					<string key="superclassName">NSObject</string>
-					<object class="NSMutableDictionary" key="outlets">
-						<bool key="EncodedWithXMLCoder">YES</bool>
-						<object class="NSArray" key="dict.sortedKeys">
-							<bool key="EncodedWithXMLCoder">YES</bool>
-							<string>glview</string>
-							<string>window</string>
-						</object>
-						<object class="NSArray" key="dict.values">
-							<bool key="EncodedWithXMLCoder">YES</bool>
-							<string>GLKView</string>
-							<string>UIWindow</string>
-						</object>
-					</object>
-					<object class="NSMutableDictionary" key="toOneOutletInfosByName">
-						<bool key="EncodedWithXMLCoder">YES</bool>
-						<object class="NSArray" key="dict.sortedKeys">
-							<bool key="EncodedWithXMLCoder">YES</bool>
-							<string>glview</string>
-							<string>window</string>
-						</object>
-						<object class="NSArray" key="dict.values">
-							<bool key="EncodedWithXMLCoder">YES</bool>
-							<object class="IBToOneOutletInfo">
-								<string key="name">glview</string>
-								<string key="candidateClassName">GLKView</string>
-							</object>
-							<object class="IBToOneOutletInfo">
-								<string key="name">window</string>
-								<string key="candidateClassName">UIWindow</string>
-							</object>
-						</object>
-					</object>
-					<object class="IBClassDescriptionSource" key="sourceIdentifier">
-						<string key="majorKey">IBProjectSource</string>
-						<string key="minorKey">./Classes/jmeAppDelegate.h</string>
-					</object>
-				</object>
-				<object class="IBPartialClassDescription">
-					<string key="className">jmeAppDelegate_iPhone</string>
-					<string key="superclassName">jmeAppDelegate</string>
-					<object class="IBClassDescriptionSource" key="sourceIdentifier">
-						<string key="majorKey">IBProjectSource</string>
-						<string key="minorKey">./Classes/jmeAppDelegate_iPhone.h</string>
-					</object>
-				</object>
-			</object>
-		</object>
-		<int key="IBDocument.localizationMode">0</int>
-		<string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string>
-		<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies">
-			<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3</string>
-			<integer value="3100" key="NS.object.0"/>
-		</object>
-		<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
-		<int key="IBDocument.defaultPropertyAccessControl">3</int>
-		<string key="IBCocoaTouchPluginVersion">1929</string>
-	</data>
-</archive>

+ 0 - 5
jme3-ios/ios-data/templates/project/jme-ios/iPhone/jmeAppDelegate_iPhone.h

@@ -1,5 +0,0 @@
-#import "jmeAppDelegate.h"
-
-@interface jmeAppDelegate_iPhone : jmeAppDelegate
-
-@end

+ 0 - 5
jme3-ios/ios-data/templates/project/jme-ios/iPhone/jmeAppDelegate_iPhone.m

@@ -1,5 +0,0 @@
-#import "jmeAppDelegate_iPhone.h"
-
-@implementation jmeAppDelegate_iPhone
-
-@end

+ 0 - 51
jme3-ios/ios-data/templates/project/jme-ios/jme-ios-Info.plist

@@ -1,51 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
-	<key>CFBundleDevelopmentRegion</key>
-	<string>en</string>
-	<key>CFBundleDisplayName</key>
-	<string>${PRODUCT_NAME}</string>
-	<key>CFBundleExecutable</key>
-	<string>${EXECUTABLE_NAME}</string>
-	<key>CFBundleIconFile</key>
-	<string></string>
-	<key>CFBundleIdentifier</key>
-	<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
-	<key>CFBundleInfoDictionaryVersion</key>
-	<string>6.0</string>
-	<key>CFBundleName</key>
-	<string>${PRODUCT_NAME}</string>
-	<key>CFBundlePackageType</key>
-	<string>APPL</string>
-	<key>CFBundleShortVersionString</key>
-	<string>1.0</string>
-	<key>CFBundleSignature</key>
-	<string>????</string>
-	<key>CFBundleVersion</key>
-	<string>1.0</string>
-	<key>LSRequiresIPhoneOS</key>
-	<true/>
-	<key>NSMainNibFile</key>
-	<string>MainWindow_iPhone</string>
-	<key>NSMainNibFile~ipad</key>
-	<string>MainWindow_iPad</string>
-	<key>UIStatusBarHidden</key>
-	<true/>
-	<key>UISupportedInterfaceOrientations</key>
-	<array>
-		<string>UIInterfaceOrientationPortrait</string>
-		<string>UIInterfaceOrientationLandscapeLeft</string>
-		<string>UIInterfaceOrientationLandscapeRight</string>
-	</array>
-	<key>UISupportedInterfaceOrientations~ipad</key>
-	<array>
-		<string>UIInterfaceOrientationPortrait</string>
-		<string>UIInterfaceOrientationPortraitUpsideDown</string>
-		<string>UIInterfaceOrientationLandscapeLeft</string>
-		<string>UIInterfaceOrientationLandscapeRight</string>
-	</array>
-	<key>UIViewControllerBasedStatusBarAppearance</key>
-	<false/>
-</dict>
-</plist>

+ 0 - 14
jme3-ios/ios-data/templates/project/jme-ios/jme-ios-Prefix.pch

@@ -1,14 +0,0 @@
-//
-// Prefix header for all source files of the 'hello' target in the 'hello' project
-//
-
-#import <Availability.h>
-
-#ifndef __IPHONE_3_0
-#warning "This project uses features only available in iPhone SDK 3.0 and later."
-#endif
-
-#ifdef __OBJC__
-    #import <UIKit/UIKit.h>
-    #import <Foundation/Foundation.h>
-#endif

+ 0 - 27
jme3-ios/ios-data/templates/project/jme-ios/jmeAppDelegate.h

@@ -1,27 +0,0 @@
-#import <UIKit/UIKit.h>
-#import <OpenGLES/ES2/gl.h>
-#import <OpenGLES/ES3/gl.h>
-#import <GLKit/GLKit.h>
-#define __LP64__ 1
-#include <jni.h>
-
-@interface jmeAppDelegate : UIResponder <UIApplicationDelegate, GLKViewDelegate, GLKViewControllerDelegate>
-
-@property (nonatomic, retain) IBOutlet UIWindow *window;
-@property (nonatomic, retain) IBOutlet GLKView *glview;
-@property (nonatomic, strong) GLKViewController *glviewController;
-@property (nonatomic, retain) EAGLContext *ctx;
-@property JavaVM* vm;
-@property jobject app;
-@property jobject harness;
-@property jmethodID pauseMethod;
-@property jmethodID reactivateMethod;
-@property jmethodID closeMethod;
-@property jmethodID updateMethod;
-@property jmethodID drawMethod;
-@property jmethodID reshapeMethod;
-@property jmethodID injectTouchBegin;
-@property jmethodID injectTouchMove;
-@property jmethodID injectTouchEnd;
-
-@end

+ 0 - 339
jme3-ios/ios-data/templates/project/jme-ios/jmeAppDelegate.m

@@ -1,339 +0,0 @@
-#include <stdint.h>
-#import <CoreGraphics/CoreGraphics.h>
-#import "jmeAppDelegate.h"
-
-static JNIEnv*
-getEnv(JavaVM* vm)
-{
-    void* env;
-    if ((*vm)->GetEnv(vm, &env, JNI_VERSION_1_4) == JNI_OK) {
-        return (JNIEnv*) env;
-    } else {
-        return 0;
-    }
-}
-
-@implementation jmeAppDelegate
-
-@synthesize window = _window;
-@synthesize vm = _vm;
-@synthesize app = _app;
-@synthesize harness = _harness;
-@synthesize pauseMethod = _pauseMethod;
-@synthesize reactivateMethod = _reactivateMethod;
-@synthesize closeMethod = _closeMethod;
-@synthesize updateMethod = _updateMethod;
-@synthesize drawMethod = _drawMethod;
-@synthesize reshapeMethod = _reshapeMethod;
-@synthesize injectTouchBegin = _injectTouchBegin;
-@synthesize injectTouchMove = _injectTouchMove;
-@synthesize injectTouchEnd = _injectTouchEnd;
-@synthesize ctx = _ctx;
-@synthesize glview = _glview;
-@synthesize glviewController = _glviewController;
-
-- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
-{
-    /**
-     * GLES Context initialization
-     **/
-    _ctx = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES3];
-    if (_ctx == nil) {
-        _ctx = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2];
-    }
-    _glview.context = _ctx;
-    _glview.drawableDepthFormat = GLKViewDrawableDepthFormat24;
-    _glview.delegate = self;
-    
-    [EAGLContext setCurrentContext: _ctx];
-    
-    /**
-     * GLES View Controller initialization
-     **/
-    _glviewController = [[GLKViewController alloc] initWithNibName:nil bundle:nil]; // 1
-    _glviewController.view = _glview; // 2
-    _glviewController.delegate = self; // 3
-    _glviewController.preferredFramesPerSecond = 30; // 4
-    _glviewController.paused = NO;
-    _window.rootViewController = _glviewController; // 5
-
-    /**
-     * Java initilization.
-     * Note that though it looks like a JVM is created, in fact only the JNI api is being used here,
-     * the whole application and java classpath has been precompiled.
-     **/
-    JavaVMInitArgs vmArgs;
-    vmArgs.version = JNI_VERSION_1_4;
-    vmArgs.nOptions = 5;
-    vmArgs.ignoreUnrecognized = JNI_TRUE;
-    
-    JavaVMOption options[vmArgs.nOptions];
-    vmArgs.options = options;
-    
-    options[0].optionString = (char*) "-Davian.bootimage=bootimageBin";
-    options[1].optionString = (char*) "-Davian.codeimage=codeimageBin";
-    options[2].optionString = (char*) "-Dsun.reflect.inflationThreshold=2147483647";
-    options[3].optionString = (char*) "-Xbootclasspath:[resourcesJar]";
-
-    // Enable logging
-    NSString *path = [[NSBundle mainBundle] pathForResource:@"logging" ofType:@"properties"];
-    NSString *log = [NSString stringWithFormat:@"-Djava.util.logging.config.file=%@", path];
-    options[4].optionString = (char*) [log cStringUsingEncoding:NSASCIIStringEncoding];
-    //
-    
-    JavaVM* vm;
-    void* env;
-    JNI_CreateJavaVM(&vm, &env, &vmArgs);
-    JNIEnv* e = (JNIEnv*) env;
-    if ((*e)->ExceptionCheck(e)) {
-        (*e)->ExceptionDescribe(e);
-        (*e)->ExceptionClear(e);
-        return NO;
-    }
-    
-    /**
-     * iOS Harness initilization.
-     * The harness is being called after creating the application.
-     **/
-    jclass harnessClass = (*e)->FindClass(e, "JmeAppHarness");
-    if (! (*e)->ExceptionCheck(e)) {
-        jmethodID harnessConstructor = (*e)->GetMethodID(e, harnessClass, "<init>", "(J)V");
-        if (! (*e)->ExceptionCheck(e)) {
-            jobject harnessObject = (*e)->NewObject(e, harnessClass, harnessConstructor, (jlong)self);
-            if (! (*e)->ExceptionCheck(e)) {
-                self.harness = harnessObject;
-                (*e)->NewGlobalRef(e, harnessObject);
-                self.pauseMethod = (*e)->GetMethodID(e, harnessClass, "appPaused", "()V");
-                (*e)->ExceptionCheck(e);
-                self.reactivateMethod = (*e)->GetMethodID(e, harnessClass, "appReactivated", "()V");
-                (*e)->ExceptionCheck(e);
-                self.closeMethod = (*e)->GetMethodID(e, harnessClass, "appClosed", "()V");
-                (*e)->ExceptionCheck(e);
-                self.updateMethod = (*e)->GetMethodID(e, harnessClass, "appUpdate", "()V");
-                (*e)->ExceptionCheck(e);
-                self.drawMethod = (*e)->GetMethodID(e, harnessClass, "appDraw", "()V");
-                (*e)->ExceptionCheck(e);
-                self.reshapeMethod = (*e)->GetMethodID(e, harnessClass, "appReshape", "(II)V");
-                (*e)->ExceptionCheck(e);
-                self.injectTouchBegin = (*e)->GetMethodID(e, harnessClass, "injectTouchBegin", "(IJFF)V");
-                (*e)->ExceptionCheck(e);
-                self.injectTouchMove = (*e)->GetMethodID(e, harnessClass, "injectTouchMove", "(IJFF)V");
-                (*e)->ExceptionCheck(e);
-                self.injectTouchEnd = (*e)->GetMethodID(e, harnessClass, "injectTouchEnd", "(IJFF)V");
-                (*e)->ExceptionCheck(e);
-            }else{
-                NSLog(@"Could not create new iOS Harness object");
-                (*e)->ExceptionDescribe(e);
-                (*e)->ExceptionClear(e);
-                return NO;
-            }
-        }else{
-            NSLog(@"Could not find iOS Harness constructor");
-            (*e)->ExceptionDescribe(e);
-            (*e)->ExceptionClear(e);
-            return NO;
-        }
-    }else{
-        (*e)->ExceptionDescribe(e);
-        (*e)->ExceptionClear(e);
-        NSLog(@"Could not find iOS Harness class");
-        return NO;
-    }
-
-    self.vm = vm;
-    
-    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(didRotate:) name:UIDeviceOrientationDidChangeNotification object:nil];
-    
-    //return (*e)->ExceptionCheck(e) ? NO : YES;
-    return YES;
-}
-
-- (void)applicationWillResignActive:(UIApplication *)application
-{
-    /*
-     Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
-     Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
-     */
-    JNIEnv* e = getEnv(self.vm);
-    if (e) {
-        (*e)->CallVoidMethod(e, self.harness, self.pauseMethod);
-    }
-}
-
-- (void)applicationDidEnterBackground:(UIApplication *)application
-{
-    /*
-     Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
-     If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
-     */
-}
-
-- (void)applicationWillEnterForeground:(UIApplication *)application
-{
-    /*
-     Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
-     */
-    JNIEnv* e = getEnv(self.vm);
-    if (e) {
-        (*e)->CallVoidMethod(e, self.harness, self.reactivateMethod);
-    }
-}
-
-- (void)applicationDidBecomeActive:(UIApplication *)application
-{
-    /*
-     Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
-     */
-}
-
-- (void)applicationWillTerminate:(UIApplication *)application
-{
-    JNIEnv* e = getEnv(self.vm);
-    if (e) {
-        (*e)->CallVoidMethod(e, self.harness, self.closeMethod);
-    }
-}
-
-- (void)dealloc
-{
-    JNIEnv* e = getEnv(self.vm);
-    if (e) {
-        if(self.app!=nil){
-            (*e)->DeleteGlobalRef(e, self.app);
-        }
-        if(self.harness!=nil){
-            (*e)->DeleteGlobalRef(e, self.harness);
-        }
-    }
-    (*self.vm)->DestroyJavaVM(self.vm);
-    [_window release];
-    _glview.context = nil;
-    [_glview release];
-    [_ctx release];
-    [super dealloc];
-}
-
-- (BOOL)shouldAutorotate
-{
-    //returns true if want to allow orientation change
-    return TRUE;
-}
-
-- (NSUInteger)supportedInterfaceOrientations
-{
-    //decide number of origination tob supported by Viewcontroller.
-    return UIInterfaceOrientationMaskAll;
-}
-
-- (void)didRotate:(NSNotification *)notification
-{
-    CGRect originalFrame = [[UIScreen mainScreen] bounds];
-    CGRect frame = [self.glview convertRect:originalFrame fromView:nil];
-    JNIEnv* e = getEnv(self.vm);
-    if (e) {
-        float scale = _glview.contentScaleFactor;
-        (*e)->CallVoidMethod(e, self.harness, self.reshapeMethod, (int)(frame.size.width * scale), (int)(frame.size.height * scale));
-        if ((*e)->ExceptionCheck(e)) {
-            NSLog(@"Could not invoke iOS Harness reshape");
-            (*e)->ExceptionDescribe(e);
-            (*e)->ExceptionClear(e);
-        }
-    }
-}
-
-#pragma mark - GLKViewDelegate
-
-- (void)glkView:(GLKView *)view drawInRect:(CGRect)rect {
-    JNIEnv* e = getEnv(self.vm);
-    if (e) {
-        (*e)->CallVoidMethod(e, self.harness, self.drawMethod);
-        if ((*e)->ExceptionCheck(e)) {
-            NSLog(@"Could not invoke iOS Harness update");
-            (*e)->ExceptionDescribe(e);
-            (*e)->ExceptionClear(e);
-        }
-    }
-}
-
-#pragma mark - GLKViewControllerDelegate
-
-- (void)glkViewControllerUpdate:(GLKViewController *)controller {
-    JNIEnv* e = getEnv(self.vm);
-    if (e) {
-        (*e)->CallVoidMethod(e, self.harness, self.updateMethod);
-        if ((*e)->ExceptionCheck(e)) {
-            NSLog(@"Could not invoke iOS Harness update");
-            (*e)->ExceptionDescribe(e);
-            (*e)->ExceptionClear(e);
-        }
-    }
-
-}
-
-#pragma mark - UIResponder
-
-- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
-    NSLog(@"touchesBegan");
-    JNIEnv* e = getEnv(self.vm);
-    if (e) {
-        NSEnumerator *enumerator = [touches objectEnumerator];
-        UITouch *touch;
-        while (touch = [enumerator nextObject]) {
-            CGPoint position = [touch locationInView: nil];
-            float scale = _glview.contentScaleFactor;
-            // NOTE: cast to jlong is required, otherwise JmeAppHarness receives non-sense values
-            (*e)->CallVoidMethod(e, self.harness, self.injectTouchBegin, (jint) touch.hash, (jlong) touch.timestamp, position.x * scale, position.y * scale);
-            if ((*e)->ExceptionCheck(e)) {
-                NSLog(@"Could not invoke iOS Harness injectTouchBegin");
-                (*e)->ExceptionDescribe(e);
-                (*e)->ExceptionClear(e);
-            }
-        }
-    }
-}
-
-- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {
-    NSLog(@"touchesMoved");
-    JNIEnv* e = getEnv(self.vm);
-    if (e) {
-        NSEnumerator *enumerator = [touches objectEnumerator];
-        UITouch *touch;
-        while (touch = [enumerator nextObject]) {
-            CGPoint position = [touch locationInView: nil];
-            float scale = _glview.contentScaleFactor;
-            // NOTE: cast to jlong is required, otherwise JmeAppHarness receives non-sense values
-            (*e)->CallVoidMethod(e, self.harness, self.injectTouchMove, (jint) touch.hash, (jlong) touch.timestamp, position.x * scale, position.y * scale);
-            if ((*e)->ExceptionCheck(e)) {
-                NSLog(@"Could not invoke iOS Harness injectTouchMove");
-                (*e)->ExceptionDescribe(e);
-                (*e)->ExceptionClear(e);
-            }
-        }
-    }
-}
-
-- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {
-    NSLog(@"touchesEnded");
-    JNIEnv* e = getEnv(self.vm);
-    if (e) {
-        NSEnumerator *enumerator = [touches objectEnumerator];
-        UITouch *touch;
-        while (touch = [enumerator nextObject]) {
-            CGPoint position = [touch locationInView: nil];
-            float scale = _glview.contentScaleFactor;
-            // NOTE: cast to jlong is required, otherwise JmeAppHarness receives non-sense values
-            (*e)->CallVoidMethod(e, self.harness, self.injectTouchEnd, (jint) touch.hash, (jlong) touch.timestamp, position.x * scale, position.y * scale);
-            if ((*e)->ExceptionCheck(e)) {
-                NSLog(@"Could not invoke iOS Harness injectTouchEnd");
-                (*e)->ExceptionDescribe(e);
-                (*e)->ExceptionClear(e);
-            }
-        }
-    }
-}
-
-- (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event {
-    NSLog(@"touchesCancelled");
-}
-
-@end

+ 0 - 28
jme3-ios/ios-data/templates/project/jme-ios/logging.properties

@@ -1,28 +0,0 @@
-# NOTE: If this file has no effect, add this line to your app:
-#       Class.forName("java.util.logging.LoggingProxyImpl");
-
-.level = FINEST
-#.level = OFF
-
-#com.mycompany.mygame.level = ALL
-#com.mycompany.mygame.level = INFO
-
-#handlers = handler1, handler2, handler3
-
-#handlers = com.jme3.system.ios.IosLogHandler
-# NOTE: IosLogHandler is always present, logs to System.err and is not configurable.
-#       Therefore you will see each log twice if you add another handler.
-
-#handlers = java.util.logging.ConsoleHandler
-#java.util.logging.ConsoleHandler.level = ALL
-#java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
-
-#handlers = java.util.logging.FileHandler
-#java.util.logging.FileHandler.level = ALL
-#java.util.logging.FileHandler.pattern = /tmp/mygame.log
-#java.util.logging.FileHandler.limit = 50000000
-#java.util.logging.FileHandler.count = 1
-#java.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter
-
-# http://docs.oracle.com/javase/7/docs/api/java/util/Formatter.html#syntax
-#java.util.logging.SimpleFormatter.format = %1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS.%1$tL %4$s %2$s %5$s%6$s%n

+ 0 - 9
jme3-ios/ios-data/templates/project/jme-ios/main.m

@@ -1,9 +0,0 @@
-#import <UIKit/UIKit.h>
-
-int main(int argc, char *argv[])
-{
-    NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
-    int retVal = UIApplicationMain(argc, argv, nil, nil);
-    [pool release];
-    return retVal;
-}

+ 0 - 130
jme3-ios/ios-data/templates/src/JmeAppHarness.java

@@ -1,130 +0,0 @@
-import com.jme3.system.ios.IosHarness;
-import com.jme3.input.ios.IosInputHandler;
-import com.jme3.math.Vector2f;
-import com.jme3.renderer.opengl.GLRenderer;
-import com.jme3.system.JmeContext;
-import com.jme3.system.AppSettings;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-/**
- * You can extend this class to perform iOS-only operations from java,
- * native methods can reside either in .c/.m files in this directory
- * or in the XCode project itself.
- * @author normenhansen
- */
-public class JmeAppHarness extends IosHarness{
-
-    private static final Logger logger = Logger.getLogger(JmeAppHarness.class.getName());
-	protected GLRenderer renderer;
-	protected IosInputHandler input;
-	protected boolean autoFlush = true;
-	protected Vector2f resizePending = null;
-
-
-    /**
-     * An instance of this object is created when your application
-     * has started on the iOS side.
-     * You can e.g. attach special AppStates or do similar things here. You can
-     * access classes from this source directory as well as your main projects
-     * sources and classpath.
-     */
-    public JmeAppHarness(long id) {
-        super(id);
-        app = new mygame.Main();
-        AppSettings settings = new AppSettings(true);
-        this.app.setSettings(settings);
-        app.start();
-        logger.log(Level.FINE, "JmeAppHarness constructor");
-        app.gainFocus();
-    }
-
-    @Override
-    public void appPaused() {
-        logger.log(Level.FINE, "JmeAppHarness appPaused");
-    }
-
-    @Override
-    public void appReactivated() {
-        logger.log(Level.FINE, "JmeAppHarness appReactivated");
-    }
-
-    @Override
-    public void appClosed() {
-        logger.log(Level.FINE, "JmeAppHarness appClosed");
-        app.stop();
-    }
-
-    @Override
-    public void appUpdate() {
-        logger.log(Level.FINE, "JmeAppHarness appUpdate");
-       //app.update();
-    }
-
-    @Override
-    public void appDraw() {
-        logger.log(Level.FINE, "JmeAppHarness appDraw");
-        if (renderer == null) {
-            JmeContext iosContext = app.getContext();
-            renderer = (GLRenderer)iosContext.getRenderer();
-            renderer.initialize();
-            input = (IosInputHandler)iosContext.getTouchInput();
-            input.initialize();
-        } else {
-            if(resizePending != null) {
-                appReshape((int)resizePending.x, (int)resizePending.y);
-                resizePending = null;
-            }
-            app.update();
-    	    if (autoFlush) {
-                renderer.postFrame();
-            }
-        }
-    }
-    
-    @Override
-    public void appReshape(int width, int height) {
-        logger.log(Level.FINE, "JmeAppHarness reshape");
-        AppSettings settings = app.getContext().getSettings();
-        settings.setResolution(width, height);
-        if (renderer != null) {
-            app.reshape(width, height);
-            resizePending = null;
-        } else {
-            resizePending = new Vector2f(width, height);
-        }
-
-        if (input != null) {
-            input.loadSettings(settings);
-        }
-    }
-    
-    public void injectTouchBegin(int pointerId, long time, float x, float y) {
-    	if (input != null) {
-        	logger.log(Level.FINE, "JmeAppHarness injectTouchBegin");
-    		input.injectTouchDown(pointerId, time, x, y);
-    	}
-    }
-    
-    public void injectTouchMove(int pointerId, long time, float x, float y) {
-    	if (input != null) {
-        	logger.log(Level.FINE, "JmeAppHarness injectTouchMove");
-    		input.injectTouchMove(pointerId, time, x, y);
-    	}
-    }
-    
-    public void injectTouchEnd(int pointerId, long time, float x, float y) {
-    	if (input != null) {
-        	logger.log(Level.FINE, "JmeAppHarness injectTouchEnd");
-    		input.injectTouchUp(pointerId, time, x, y);
-    	}
-    }
-    
-    /**
-     * Example of a native method calling iOS code.
-     * See the native code in IosHarness.m
-     * @param text The message to display
-     */
-    public native void showDialog(String text);
-
-}

+ 0 - 60
jme3-ios/ios-data/templates/src/JmeAppHarness.m

@@ -1,60 +0,0 @@
-/*
- * Copyright (c) 2009-2013 jMonkeyEngine
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- *
- * * Redistributions of source code must retain the above copyright
- *   notice, this list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above copyright
- *   notice, this list of conditions and the following disclaimer in the
- *   documentation and/or other materials provided with the distribution.
- *
- * * Neither the name of 'jMonkeyEngine' nor the names of its contributors
- *   may be used to endorse or promote products derived from this software
- *   without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
- * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-#include <jni.h>
-#import <UIKit/UIKit.h>
-
-/**
- * Author: Normen Hansen
- */
-
-#ifndef JNIEXPORT
-#define JNIEXPORT __attribute__ ((visibility("default"))) \
-  __attribute__ ((used))
-#endif
-
-#ifndef _Included_JmeAppHarness
-#define _Included_JmeAppHarness
-#endif
-
-JNIEXPORT void JNICALL
-Java_JmeAppHarness_showDialog(JNIEnv* e, jobject c, jstring text) {
-    const char* chars = (*e)->GetStringUTFChars(e, text, 0);
-    NSString* string = [[NSString alloc] initWithUTF8String : chars];
-    (*e)->ReleaseStringUTFChars(e, text, chars);
-    UIAlertView *alert = [[UIAlertView alloc] initWithTitle : @"Message"
-            message : string
-            delegate : nil
-            cancelButtonTitle : @"OK"
-            otherButtonTitles : nil];
-    [alert show];
-    [alert release];
-}

+ 0 - 2392
jme3-ios/ios-data/templates/src/JmeIosGLES.m

@@ -1,2392 +0,0 @@
-#import <stdlib.h>
-#define __LP64__ 1
-#import <jni.h>
-#import <OpenGLES/ES2/gl.h>
-#import <OpenGLES/ES2/glext.h>
-#import <OpenGLES/ES3/gl.h>
-#import <OpenGLES/ES3/glext.h>
-
-/**
- * Author: Kostyantyn Hushchyn, Jesus Oliver
- */
-
-#ifndef JNIEXPORT
-#define JNIEXPORT __attribute__ ((visibility("default"))) \
-  __attribute__ ((used))
-#endif
-
-#ifndef _Included_JmeIosGLES
-#define _Included_JmeIosGLES
-#endif
-
-#define glBindVertexArray glBindVertexArrayOES
-
-static int initialized = 0;
-
-static jclass bufferClass = (jclass)0;
-static jclass byteBufferClass = (jclass)0;
-static jclass shortBufferClass = (jclass)0;
-static jclass intBufferClass = (jclass)0;
-static jclass floatBufferClass = (jclass)0;
-static jfieldID positionID;
-static jfieldID limitID;
-
-
-static void
-nativeClassInit(JNIEnv *e);
-
-static int
-allowIndirectBuffers(JNIEnv *e);
-
-static void *
-getDirectBufferPointer(JNIEnv *e, jobject buffer);
-
-static void *
-getPointer(JNIEnv *e, jobject buffer, jarray *array, jint *remaining, jint *offset);
-
-static void
-releasePointer(JNIEnv *e, jarray array, void *data, jboolean commit);
-
-static void
-jniThrowException(JNIEnv *e, const char* type, const char* message);
-
-static jint
-getBufferElementSize(JNIEnv *e, jobject buffer);
-
-static int getNeededCount(GLint pname);
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glActiveTexture(JNIEnv* e, jobject c, jint texture) {
-    glActiveTexture(
-        (GLenum)texture
-    );
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glAttachShader(JNIEnv* e, jobject c, jint program, jint shader) {
-    glAttachShader(
-        (GLuint)program,
-        (GLuint)shader
-    );
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glBindBuffer(JNIEnv* e, jobject c, jint target, jint buffer) {
-    glBindBuffer(
-        (GLenum)target,
-        (GLuint)buffer
-    );
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glBindFramebuffer(JNIEnv* e, jobject c, jint target, jint framebuffer) {
-    glBindFramebuffer(
-        (GLenum)target,
-        (GLuint)framebuffer
-    );
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glBindRenderbuffer(JNIEnv* e, jobject c, jint target, jint renderbuffer) {
-    glBindRenderbuffer(
-        (GLenum)target,
-        (GLuint)renderbuffer
-    );
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glBindTexture(JNIEnv* e, jobject c, jint target, jint texture) {
-    glBindTexture(
-        (GLenum)target,
-        (GLuint)texture
-    );
-}
-
- // TODO: Investigate this
- /*
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glBindVertexArray(JNIEnv* e, jobject c, jint array) {
-	glBindVertexArray(array);
-}
-*/
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glBlendFunc(JNIEnv* e, jobject c, jint sfactor, jint dfactor) {
-    glBlendFunc(
-        (GLenum)sfactor,
-        (GLenum)dfactor
-    );
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glBufferData(JNIEnv* e, jobject c, jint target, jint size, jobject data_buf, jint usage) {
-    jint _exception = 0;
-    const char * _exceptionType = NULL;
-    const char * _exceptionMessage = NULL;
-    jarray _array = (jarray) 0;
-    jint _bufferOffset = (jint) 0;
-    jint _remaining;
-    GLvoid *data = (GLvoid *) 0;
-
-    if (data_buf) {
-        data = (GLvoid *)getPointer(e, data_buf, &_array, &_remaining, &_bufferOffset);
-        if (_remaining < size) {
-            _exception = 1;
-            _exceptionType = "java/lang/IllegalArgumentException";
-            _exceptionMessage = "remaining() < size < needed";
-            goto exit;
-        }
-    }
-    if (data_buf && data == NULL) {
-        char * _dataBase = (char *)(*e)->GetPrimitiveArrayCritical(e, _array, (jboolean *) 0);
-        data = (GLvoid *) (_dataBase + _bufferOffset);
-    }
-    glBufferData(
-        (GLenum)target,
-        (GLsizeiptr)size,
-        (GLvoid *)data,
-        (GLenum)usage
-    );
-
-exit:
-    if (_array) {
-        releasePointer(e, _array, data, JNI_FALSE);
-    }
-    if (_exception) {
-        jniThrowException(e, _exceptionType, _exceptionMessage);
-    }
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glBufferData2(JNIEnv* e, jobject c, jint target, jint size, jbyteArray data, jint offset, jint usage) {
-	jbyte *dataNative = (*e)->GetByteArrayElements(e, data, NULL);
-	
-    glBufferData(
-        (GLenum)target,
-        (GLsizeiptr)size,
-        (GLvoid *)dataNative,
-        (GLenum)(usage + offset)
-    );
-	
-	(*e)->ReleaseByteArrayElements(e, data, dataNative, 0);
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glBufferSubData(JNIEnv* e, jobject c, jint target, jint offset, jint size, jobject data_buf) {
-    jint _exception = 0;
-    const char * _exceptionType = NULL;
-    const char * _exceptionMessage = NULL;
-    jarray _array = (jarray) 0;
-    jint _bufferOffset = (jint) 0;
-    jint _remaining;
-    GLvoid *data = (GLvoid *) 0;
-
-    data = (GLvoid *)getPointer(e, data_buf, &_array, &_remaining, &_bufferOffset);
-    if (_remaining < size) {
-        _exception = 1;
-        _exceptionType = "java/lang/IllegalArgumentException";
-        _exceptionMessage = "remaining() < size < needed";
-        goto exit;
-    }
-    if (data == NULL) {
-        char * _dataBase = (char *)(*e)->GetPrimitiveArrayCritical(e, _array, (jboolean *) 0);
-        data = (GLvoid *) (_dataBase + _bufferOffset);
-    }
-    glBufferSubData(
-        (GLenum)target,
-        (GLintptr)offset,
-        (GLsizeiptr)size,
-        (GLvoid *)data
-    );
-
-exit:
-    if (_array) {
-        releasePointer(e, _array, data, JNI_FALSE);
-    }
-    if (_exception) {
-        jniThrowException(e, _exceptionType, _exceptionMessage);
-    }
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glBufferSubData2(JNIEnv* e, jobject c, jint target, jint offset, jint size, jbyteArray data, jint dataoffset) {
-	jbyte *dataNative = (*e)->GetByteArrayElements(e, data, NULL);
-	
-    glBufferSubData(
-        (GLenum)target,
-        (GLintptr)offset,
-        (GLsizeiptr)size,
-        (GLvoid *)(dataNative + dataoffset)
-    );
-	
-	(*e)->ReleaseByteArrayElements(e, data, dataNative, 0);
-}
-
-JNIEXPORT jint JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glCheckFramebufferStatus(JNIEnv* e, jobject c, jint target) {
-    GLenum _returnValue;
-    _returnValue = glCheckFramebufferStatus(
-        (GLenum)target
-    );
-    return (jint)_returnValue;
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glClear(JNIEnv* e, jobject c, jint mask) {
-    glClear(
-        (GLbitfield)mask
-    );
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glClearColor(JNIEnv* e, jobject c, jfloat red, jfloat green, jfloat blue, jfloat alpha) {
-    glClearColor(
-        (GLclampf)red,
-        (GLclampf)green,
-        (GLclampf)blue,
-        (GLclampf)alpha
-    );
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glColorMask(JNIEnv* e, jobject c, jboolean red, jboolean green, jboolean blue, jboolean alpha) {
-    glColorMask(
-        (GLboolean)red,
-        (GLboolean)green,
-        (GLboolean)blue,
-        (GLboolean)alpha
-    );
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glCompileShader(JNIEnv* e, jobject c, jint shader) {
-    glCompileShader(
-        (GLuint)shader
-    );
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glCompressedTexImage2D(JNIEnv* e, jobject c, jint target, jint level, jint internalformat, jint width, jint height, jint border, jint imageSize, jobject pixels_buf) {
-    jarray _array = (jarray) 0;
-    jint _bufferOffset = (jint) 0;
-    jint _remaining;
-    GLvoid *pixels = (GLvoid *) 0;
-
-    if (pixels_buf) {
-        pixels = (GLvoid *)getPointer(e, pixels_buf, &_array, &_remaining, &_bufferOffset);
-    }
-    if (pixels_buf && pixels == NULL) {
-        char * _pixelsBase = (char *)(*e)->GetPrimitiveArrayCritical(e, _array, (jboolean *) 0);
-        pixels = (GLvoid *) (_pixelsBase + _bufferOffset);
-    }
-    glCompressedTexImage2D(
-        (GLenum)target,
-        (GLint)level,
-        (GLenum)internalformat,
-        (GLsizei)width,
-        (GLsizei)height,
-        (GLint)border,
-        (GLsizei)imageSize,
-        (GLvoid *)pixels
-    );
-    if (_array) {
-        releasePointer(e, _array, pixels, JNI_FALSE);
-    }
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glCompressedTexSubImage2D(JNIEnv* e, jobject c, jint target, jint level, jint xoffset, jint yoffset, jint width, jint height, jint format, jint imageSize, jobject pixels_buf) {
-    jarray _array = (jarray) 0;
-    jint _bufferOffset = (jint) 0;
-    jint _remaining;
-    GLvoid *pixels = (GLvoid *) 0;
-
-    if (pixels_buf) {
-        pixels = (GLvoid *)getPointer(e, pixels_buf, &_array, &_remaining, &_bufferOffset);
-    }
-    if (pixels_buf && pixels == NULL) {
-        char * _pixelsBase = (char *)(*e)->GetPrimitiveArrayCritical(e, _array, (jboolean *) 0);
-        pixels = (GLvoid *) (_pixelsBase + _bufferOffset);
-    }
-    glCompressedTexSubImage2D(
-        (GLenum)target,
-        (GLint)level,
-        (GLint)xoffset,
-        (GLint)yoffset,
-        (GLsizei)width,
-        (GLsizei)height,
-        (GLenum)format,
-        (GLsizei)imageSize,
-        (GLvoid *)pixels
-    );
-    if (_array) {
-        releasePointer(e, _array, pixels, JNI_FALSE);
-    }
-}
-
-JNIEXPORT jint JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glCreateProgram(JNIEnv* e, jobject c) {
-    GLuint _returnValue;
-    _returnValue = glCreateProgram();
-    return (jint)_returnValue;
-}
-
-JNIEXPORT jint JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glCreateShader(JNIEnv* e, jobject c, jint shaderType) {
-    GLuint _returnValue;
-    _returnValue = glCreateShader(
-        (GLenum)shaderType
-    );
-    return (jint)_returnValue;
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glCullFace(JNIEnv* e, jobject c, jint mode) {
-    glCullFace(
-        (GLenum)mode
-    );
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glDeleteBuffers(JNIEnv* e, jobject c, jint n, jintArray buffers, jint offset) {
-	jint *buffersNative = (*e)->GetIntArrayElements(e, buffers, NULL);
-	
-    glDeleteBuffers(
-        (GLsizei)n,
-        (GLuint *)buffersNative
-    );
-	
-	(*e)->ReleaseIntArrayElements(e, buffers, buffersNative, 0);
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glDeleteFramebuffers(JNIEnv* e, jobject c, jint n, jintArray framebuffers, jint offset) {
-	jint *buffersNative = (*e)->GetIntArrayElements(e, framebuffers, NULL);
-	
-    glDeleteFramebuffers(
-        (GLsizei)n,
-        (GLuint *)buffersNative
-    );
-	
-	(*e)->ReleaseIntArrayElements(e, framebuffers, buffersNative, 0);
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glDeleteProgram(JNIEnv* e, jobject c, jint program) {
-    glDeleteProgram(
-        (GLuint)program
-    );
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glDeleteRenderbuffers(JNIEnv* e, jobject c, jint n, jintArray renderbuffers, jint offset) {
-	jint *buffersNative = (*e)->GetIntArrayElements(e, renderbuffers, NULL);
-	
-    glDeleteRenderbuffers(
-        (GLsizei)n,
-        (GLuint *)buffersNative
-    );
-	
-	(*e)->ReleaseIntArrayElements(e, renderbuffers, buffersNative, 0);
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glDeleteShader(JNIEnv* e, jobject c, jint shader) {
-    glDeleteShader(
-        (GLuint)shader
-    );
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glDeleteTextures(JNIEnv* e, jobject c, jint n, jintArray textures_ref, jint offset) {
-    jint _exception = 0;
-    const char * _exceptionType = NULL;
-    const char * _exceptionMessage = NULL;
-    GLuint *textures_base = (GLuint *) 0;
-    jint _remaining;
-    GLuint *textures = (GLuint *) 0;
-
-    if (!textures_ref) {
-        _exception = 1;
-        _exceptionType = "java/lang/IllegalArgumentException";
-        _exceptionMessage = "textures == null";
-        goto exit;
-    }
-    if (offset < 0) {
-        _exception = 1;
-        _exceptionType = "java/lang/IllegalArgumentException";
-        _exceptionMessage = "offset < 0";
-        goto exit;
-    }
-    _remaining = (*e)->GetArrayLength(e, textures_ref) - offset;
-    if (_remaining < n) {
-        _exception = 1;
-        _exceptionType = "java/lang/IllegalArgumentException";
-        _exceptionMessage = "length - offset < n < needed";
-        goto exit;
-    }
-    textures_base = (GLuint *)
-        (*e)->GetPrimitiveArrayCritical(e, textures_ref, (jboolean *)0);
-    textures = textures_base + offset;
-
-    glDeleteTextures(
-        (GLsizei)n,
-        (GLuint *)textures
-    );
-
-exit:
-    if (textures_base) {
-        (*e)->ReleasePrimitiveArrayCritical(e, textures_ref, textures_base,
-            JNI_ABORT);
-    }
-    if (_exception) {
-        jniThrowException(e, _exceptionType, _exceptionMessage);
-    }
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glDepthFunc(JNIEnv* e, jobject c, jint func) {
-    glDepthFunc(
-        (GLenum)func
-    );
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glDepthMask(JNIEnv* e, jobject c, jboolean flag) {
-    glDepthMask(
-        (GLboolean)flag
-    );
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glDepthRangef(JNIEnv* e, jobject c, jfloat zNear, jfloat zFar) {
-    glDepthRangef(
-        (GLclampf)zNear,
-        (GLclampf)zFar
-    );
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glDetachShader(JNIEnv* e, jobject c, jint program, jint shader) {
-    glDetachShader(
-        (GLuint)program,
-        (GLuint)shader
-    );
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glDisable(JNIEnv* e, jobject c, jint cap) {
-    glDisable(
-        (GLenum)cap
-    );
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glDisableVertexAttribArray(JNIEnv* e, jobject c, jint index) {
-    glDisableVertexAttribArray(
-        (GLuint)index
-    );
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glDrawArrays(JNIEnv* e, jobject c, jint mode, jint first, jint count) {
-    glDrawArrays(
-        (GLenum)mode,
-        (GLint)first,
-        (GLsizei)count
-    );
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glDrawElements(JNIEnv* e, jobject c, jint mode, jint count, jint type, jobject indices_buf) {
-    jint _exception = 0;
-    const char * _exceptionType = NULL;
-    const char * _exceptionMessage = NULL;
-    jarray _array = (jarray) 0;
-    jint _bufferOffset = (jint) 0;
-    jint _remaining;
-    GLvoid *indices = (GLvoid *) 0;
-
-    indices = (GLvoid *)getPointer(e, indices_buf, &_array, &_remaining, &_bufferOffset);
-    if (_remaining < count) {
-        _exception = 1;
-        _exceptionType = "java/lang/ArrayIndexOutOfBoundsException";
-        _exceptionMessage = "remaining() < count < needed";
-        goto exit;
-    }
-    if (indices == NULL) {
-        char * _indicesBase = (char *)(*e)->GetPrimitiveArrayCritical(e, _array, (jboolean *) 0);
-        indices = (GLvoid *) (_indicesBase + _bufferOffset);
-    }
-    glDrawElements(
-        (GLenum)mode,
-        (GLsizei)count,
-        (GLenum)type,
-        (GLvoid *)indices
-    );
-
-exit:
-    if (_array) {
-        releasePointer(e, _array, indices, JNI_FALSE);
-    }
-    if (_exception) {
-        jniThrowException(e, _exceptionType, _exceptionMessage);
-    }
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glDrawElements2(JNIEnv* e, jobject c, jint mode, jint count, jint type, jbyteArray indices, jint offset) {
-	jbyte *indicesNative = (*e)->GetByteArrayElements(e, indices, NULL);
-	
-    glDrawElements(
-        (GLenum)mode,
-        (GLsizei)count,
-        (GLenum)type,
-        (GLvoid *)(indicesNative + offset)
-    );
-	
-	(*e)->ReleaseByteArrayElements(e, indices, indicesNative, 0);
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glDrawElementsIndex(JNIEnv* e, jobject c, jint mode, jint count, jint type, jint offset) {
-    glDrawElements(
-        (GLenum)mode,
-        (GLsizei)count,
-        (GLenum)type,
-        (GLvoid *)offset
-    );
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glEnable(JNIEnv* e, jobject c, jint cap) {
-    glEnable(
-        (GLenum)cap
-    );
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glEnableVertexAttribArray(JNIEnv* e, jobject c, jint index) {
-    glEnableVertexAttribArray(
-        (GLuint)index
-    );
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glFramebufferRenderbuffer(JNIEnv* e, jobject c, jint target, jint attachment, jint renderbuffertarget, jint renderbuffer) {
-    glFramebufferRenderbuffer(
-        (GLenum)target,
-        (GLenum)attachment,
-        (GLenum)renderbuffertarget,
-        (GLuint)renderbuffer
-    );
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glFramebufferTexture2D(JNIEnv* e, jobject c, jint target, jint attachment, jint textarget, jint texture, jint level) {
-    glFramebufferTexture2D(
-        (GLenum)target,
-        (GLenum)attachment,
-        (GLenum)textarget,
-        (GLuint)texture,
-        (GLint)level
-    );
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glGenBuffers(JNIEnv* e, jobject c, jint n, jintArray buffers_ref, jint offset) {
-    jint _exception = 0;
-    const char * _exceptionType = NULL;
-    const char * _exceptionMessage = NULL;
-    GLuint *buffers_base = (GLuint *) 0;
-    jint _remaining;
-    GLuint *buffers = (GLuint *) 0;
-
-    if (!buffers_ref) {
-        _exception = 1;
-        _exceptionType = "java/lang/IllegalArgumentException";
-        _exceptionMessage = "buffers == null";
-        goto exit;
-    }
-    if (offset < 0) {
-        _exception = 1;
-        _exceptionType = "java/lang/IllegalArgumentException";
-        _exceptionMessage = "offset < 0";
-        goto exit;
-    }
-    _remaining = (*e)->GetArrayLength(e, buffers_ref) - offset;
-    if (_remaining < n) {
-        _exception = 1;
-        _exceptionType = "java/lang/IllegalArgumentException";
-        _exceptionMessage = "length - offset < n < needed";
-        goto exit;
-    }
-    buffers_base = (GLuint *)
-        (*e)->GetPrimitiveArrayCritical(e, buffers_ref, (jboolean *)0);
-    buffers = buffers_base + offset;
-
-    glGenBuffers(
-        (GLsizei)n,
-        (GLuint *)buffers
-    );
-
-exit:
-    if (buffers_base) {
-        (*e)->ReleasePrimitiveArrayCritical(e, buffers_ref, buffers_base,
-            _exception ? JNI_ABORT: 0);
-    }
-    if (_exception) {
-        jniThrowException(e, _exceptionType, _exceptionMessage);
-    }
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glGenFramebuffers(JNIEnv* e, jobject c, jint n, jintArray framebuffers_ref, jint offset) {
-    jint _exception = 0;
-    const char * _exceptionType = NULL;
-    const char * _exceptionMessage = NULL;
-    GLuint *buffers_base = (GLuint *) 0;
-    jint _remaining;
-    GLuint *buffers = (GLuint *) 0;
-
-    if (!framebuffers_ref) {
-        _exception = 1;
-        _exceptionType = "java/lang/IllegalArgumentException";
-        _exceptionMessage = "buffers == null";
-        goto exit;
-    }
-    if (offset < 0) {
-        _exception = 1;
-        _exceptionType = "java/lang/IllegalArgumentException";
-        _exceptionMessage = "offset < 0";
-        goto exit;
-    }
-    _remaining = (*e)->GetArrayLength(e, framebuffers_ref) - offset;
-    if (_remaining < n) {
-        _exception = 1;
-        _exceptionType = "java/lang/IllegalArgumentException";
-        _exceptionMessage = "length - offset < n < needed";
-        goto exit;
-    }
-    buffers_base = (GLuint *)
-        (*e)->GetPrimitiveArrayCritical(e, framebuffers_ref, (jboolean *)0);
-    buffers = buffers_base + offset;
-
-    glGenFramebuffers(
-        (GLsizei)n,
-        (GLuint *)buffers
-    );
-
-exit:
-    if (buffers_base) {
-        (*e)->ReleasePrimitiveArrayCritical(e, framebuffers_ref, buffers_base,
-            _exception ? JNI_ABORT: 0);
-    }
-    if (_exception) {
-        jniThrowException(e, _exceptionType, _exceptionMessage);
-    }
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glGenRenderbuffers(JNIEnv* e, jobject c, jint n, jintArray renderbuffers_ref, jint offset) {
-    jint _exception = 0;
-    const char * _exceptionType = NULL;
-    const char * _exceptionMessage = NULL;
-    GLuint *buffers_base = (GLuint *) 0;
-    jint _remaining;
-    GLuint *buffers = (GLuint *) 0;
-
-    if (!renderbuffers_ref) {
-        _exception = 1;
-        _exceptionType = "java/lang/IllegalArgumentException";
-        _exceptionMessage = "buffers == null";
-        goto exit;
-    }
-    if (offset < 0) {
-        _exception = 1;
-        _exceptionType = "java/lang/IllegalArgumentException";
-        _exceptionMessage = "offset < 0";
-        goto exit;
-    }
-    _remaining = (*e)->GetArrayLength(e, renderbuffers_ref) - offset;
-    if (_remaining < n) {
-        _exception = 1;
-        _exceptionType = "java/lang/IllegalArgumentException";
-        _exceptionMessage = "length - offset < n < needed";
-        goto exit;
-    }
-    buffers_base = (GLuint *)
-        (*e)->GetPrimitiveArrayCritical(e, renderbuffers_ref, (jboolean *)0);
-    buffers = buffers_base + offset;
-
-    glGenRenderbuffers(
-        (GLsizei)n,
-        (GLuint *)buffers
-    );
-
-exit:
-    if (buffers_base) {
-        (*e)->ReleasePrimitiveArrayCritical(e, renderbuffers_ref, buffers_base,
-            _exception ? JNI_ABORT: 0);
-    }
-    if (_exception) {
-        jniThrowException(e, _exceptionType, _exceptionMessage);
-    }
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glGenTextures(JNIEnv* e, jobject c, jint n, jintArray textures_ref, jint offset) {
-    jint _exception = 0;
-    const char * _exceptionType = NULL;
-    const char * _exceptionMessage = NULL;
-    GLuint *buffers_base = (GLuint *) 0;
-    jint _remaining;
-    GLuint *buffers = (GLuint *) 0;
-
-    if (!textures_ref) {
-        _exception = 1;
-        _exceptionType = "java/lang/IllegalArgumentException";
-        _exceptionMessage = "buffers == null";
-        goto exit;
-    }
-    if (offset < 0) {
-        _exception = 1;
-        _exceptionType = "java/lang/IllegalArgumentException";
-        _exceptionMessage = "offset < 0";
-        goto exit;
-    }
-    _remaining = (*e)->GetArrayLength(e, textures_ref) - offset;
-    if (_remaining < n) {
-        _exception = 1;
-        _exceptionType = "java/lang/IllegalArgumentException";
-        _exceptionMessage = "length - offset < n < needed";
-        goto exit;
-    }
-    buffers_base = (GLuint *)
-        (*e)->GetPrimitiveArrayCritical(e, textures_ref, (jboolean *)0);
-    buffers = buffers_base + offset;
-
-    glGenTextures(
-        (GLsizei)n,
-        (GLuint *)buffers
-    );
-
-exit:
-    if (buffers_base) {
-        (*e)->ReleasePrimitiveArrayCritical(e, textures_ref, buffers_base,
-            _exception ? JNI_ABORT: 0);
-    }
-    if (_exception) {
-        jniThrowException(e, _exceptionType, _exceptionMessage);
-    }
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glGenerateMipmap(JNIEnv* e, jobject c, jint target) {
-    glGenerateMipmap(
-        (GLenum)target
-    );
-}
-
-JNIEXPORT jint JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glGetAttribLocation(JNIEnv* e, jobject c, jint program, jstring name) {
-    jint _exception = 0;
-    const char * _exceptionType = NULL;
-    const char * _exceptionMessage = NULL;
-    GLint _returnValue = 0;
-    const char* _nativename = 0;
-
-    if (!name) {
-        _exception = 1;
-        _exceptionType = "java/lang/IllegalArgumentException";
-        _exceptionMessage = "name == null";
-        goto exit;
-    }
-    _nativename = (*e)->GetStringUTFChars(e, name, 0);
-
-    _returnValue = glGetAttribLocation(
-        (GLuint)program,
-        (char *)_nativename
-    );
-
-exit:
-    if (_nativename) {
-        (*e)->ReleaseStringUTFChars(e, name, _nativename);
-    }
-
-    if (_exception) {
-        jniThrowException(e, _exceptionType, _exceptionMessage);
-    }
-    return (jint)_returnValue;
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glGetBoolean(JNIEnv* e, jobject c, jint pname, jobject params_buf) {
-    jarray _array = (jarray) 0;
-    jint _bufferOffset = (jint) 0;
-    jint _remaining;
-    GLvoid *params = (GLvoid *) 0;
-
-    if (params_buf) {
-        params = (GLvoid *)getPointer(e, params_buf, &_array, &_remaining, &_bufferOffset);
-    }
-    if (params_buf && params == NULL) {
-        char * _paramsBase = (char *)(*e)->GetPrimitiveArrayCritical(e, _array, (jboolean *) 0);
-        params = (GLvoid *) (_paramsBase + _bufferOffset);
-    }
-      
-    glGetBooleanv(
-        (GLenum) pname,
-        (GLboolean *) params
-    );
-}
-
-
-JNIEXPORT jint JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glGetError(JNIEnv* e, jobject c) {
-    GLenum _returnValue;
-    _returnValue = glGetError();
-    return (jint)_returnValue;
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glGetFramebufferAttachmentParameteriv(JNIEnv* e, jobject c, jint target, jint attachment, jint pname, jintArray params_ref, jint offset) {
-    jint _exception = 0;
-    const char * _exceptionType = NULL;
-    const char * _exceptionMessage = NULL;
-    GLint *params_base = (GLint *) 0;
-    jint _remaining;
-    GLint *params = (GLint *) 0;
-
-    if (!params_ref) {
-        _exception = 1;
-        _exceptionType = "java/lang/IllegalArgumentException";
-        _exceptionMessage = "params == null";
-        goto exit;
-    }
-    if (offset < 0) {
-        _exception = 1;
-        _exceptionType = "java/lang/IllegalArgumentException";
-        _exceptionMessage = "offset < 0";
-        goto exit;
-    }
-    _remaining = (*e)->GetArrayLength(e, params_ref) - offset;
-    params_base = (GLint *)
-        (*e)->GetPrimitiveArrayCritical(e, params_ref, (jboolean *)0);
-    params = params_base + offset;
-
-    glGetFramebufferAttachmentParameteriv(
-        (GLenum)target,
-        (GLenum)attachment,
-        (GLenum)pname,
-        (GLint *)params
-    );
-
-exit:
-    if (params_base) {
-        (*e)->ReleasePrimitiveArrayCritical(e, params_ref, params_base,
-            _exception ? JNI_ABORT: 0);
-    }
-    if (_exception) {
-        jniThrowException(e, _exceptionType, _exceptionMessage);
-    }
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glGetIntegerv(JNIEnv* e, jobject c, jint pname, jintArray params_ref, jint offset) {
-    jint _exception = 0;
-    const char * _exceptionType;
-    const char * _exceptionMessage;
-    GLint *params_base = (GLint *) 0;
-    jint _remaining;
-    GLint *params = (GLint *) 0;
-    int _needed = 0;
-
-    if (!params_ref) {
-        _exception = 1;
-        _exceptionType = "java/lang/IllegalArgumentException";
-        _exceptionMessage = "params == null";
-        goto exit;
-    }
-    if (offset < 0) {
-        _exception = 1;
-        _exceptionType = "java/lang/IllegalArgumentException";
-        _exceptionMessage = "offset < 0";
-        goto exit;
-    }
-    _remaining = (*e)->GetArrayLength(e, params_ref) - offset;
-    _needed = getNeededCount(pname);
-    // if we didn't find this pname, we just assume the user passed
-    // an array of the right size -- this might happen with extensions
-    // or if we forget an enum here.
-    if (_remaining < _needed) {
-        _exception = 1;
-        _exceptionType = "java/lang/IllegalArgumentException";
-        _exceptionMessage = "length - offset < needed";
-        goto exit;
-    }
-    params_base = (GLint *)
-        (*e)->GetPrimitiveArrayCritical(e, params_ref, (jboolean *)0);
-    params = params_base + offset;
-
-    glGetIntegerv(
-        (GLenum)pname,
-        (GLint *)params
-    );
-
-exit:
-    if (params_base) {
-        (*e)->ReleasePrimitiveArrayCritical(e, params_ref, params_base,
-            _exception ? JNI_ABORT: 0);
-    }
-    if (_exception) {
-        jniThrowException(e, _exceptionType, _exceptionMessage);
-    }
-}
-
-JNIEXPORT jstring JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glGetProgramInfoLog(JNIEnv* e, jobject c, jint program) {
-	GLsizei size = 0;
-	glGetProgramiv((GLuint)program, GL_INFO_LOG_LENGTH, &size);
-	
-	GLchar *infoLog;
-
-	if (!size) {
-		return  (*e)->NewStringUTF(e, "");
-	}
-	
-	infoLog = malloc(sizeof(GLchar) * size);
-    if (infoLog == NULL) {
-        jniThrowException(e, "java/lang/IllegalArgumentException", "out of memory");
-        return NULL;
-    }
-	
-	glGetProgramInfoLog((GLuint)program, size, NULL, infoLog);
-	jstring log = (*e)->NewStringUTF(e, infoLog);
-	free(infoLog);
-
-	return log; 
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glGetProgramiv(JNIEnv* e, jobject c, jint program, jint pname, jintArray params_ref, jint offset) {
-    jint _exception = 0;
-    const char * _exceptionType = NULL;
-    const char * _exceptionMessage = NULL;
-    GLint *params_base = (GLint *) 0;
-    jint _remaining;
-    GLint *params = (GLint *) 0;
-
-    if (!params_ref) {
-        _exception = 1;
-        _exceptionType = "java/lang/IllegalArgumentException";
-        _exceptionMessage = "params == null";
-        goto exit;
-    }
-    if (offset < 0) {
-        _exception = 1;
-        _exceptionType = "java/lang/IllegalArgumentException";
-        _exceptionMessage = "offset < 0";
-        goto exit;
-    }
-    _remaining = (*e)->GetArrayLength(e, params_ref) - offset;
-    if (_remaining < 1) {
-        _exception = 1;
-        _exceptionType = "java/lang/IllegalArgumentException";
-        _exceptionMessage = "length - offset < 1 < needed";
-        goto exit;
-    }
-    params_base = (GLint *)
-        (*e)->GetPrimitiveArrayCritical(e, params_ref, (jboolean *)0);
-    params = params_base + offset;
-
-    glGetProgramiv(
-        (GLuint)program,
-        (GLenum)pname,
-        (GLint *)params
-    );
-
-exit:
-    if (params_base) {
-        (*e)->ReleasePrimitiveArrayCritical(e, params_ref, params_base,
-            _exception ? JNI_ABORT: 0);
-    }
-    if (_exception) {
-        jniThrowException(e, _exceptionType, _exceptionMessage);
-    }
-}
-
-JNIEXPORT jstring JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glGetShaderInfoLog(JNIEnv* e, jobject c, jint shader) {
-	GLsizei size = 0;
-	glGetShaderiv((GLuint)shader, GL_INFO_LOG_LENGTH, &size);
-	
-	GLchar *infoLog;
-
-	if (!size) {
-		return  (*e)->NewStringUTF(e, "");
-	}
-	
-	infoLog = malloc(sizeof(GLchar) * size);
-    if (infoLog == NULL) {
-        jniThrowException(e, "java/lang/IllegalArgumentException", "out of memory");
-        return NULL;
-    }
-	
-	glGetShaderInfoLog((GLuint)shader, size, NULL, infoLog);
-	jstring log = (*e)->NewStringUTF(e, infoLog);
-	free(infoLog);
-
-	return log; 
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glGetShaderiv(JNIEnv* e, jobject c, jint shader, jint pname, jintArray params_ref, jint offset) {
-    jint _exception = 0;
-    const char * _exceptionType = NULL;
-    const char * _exceptionMessage = NULL;
-    GLint *params_base = (GLint *) 0;
-    jint _remaining;
-    GLint *params = (GLint *) 0;
-
-    if (!params_ref) {
-        _exception = 1;
-        _exceptionType = "java/lang/IllegalArgumentException";
-        _exceptionMessage = "params == null";
-        goto exit;
-    }
-    if (offset < 0) {
-        _exception = 1;
-        _exceptionType = "java/lang/IllegalArgumentException";
-        _exceptionMessage = "offset < 0";
-        goto exit;
-    }
-    _remaining = (*e)->GetArrayLength(e, params_ref) - offset;
-    if (_remaining < 1) {
-        _exception = 1;
-        _exceptionType = "java/lang/IllegalArgumentException";
-        _exceptionMessage = "length - offset < 1 < needed";
-        goto exit;
-    }
-    params_base = (GLint *)
-        (*e)->GetPrimitiveArrayCritical(e, params_ref, (jboolean *)0);
-    params = params_base + offset;
-
-    glGetShaderiv(
-        (GLuint)shader,
-        (GLenum)pname,
-        (GLint *)params
-    );
-
-exit:
-    if (params_base) {
-        (*e)->ReleasePrimitiveArrayCritical(e, params_ref, params_base,
-            _exception ? JNI_ABORT: 0);
-    }
-    if (_exception) {
-        jniThrowException(e, _exceptionType, _exceptionMessage);
-    }
-}
-
-JNIEXPORT jstring JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glGetString(JNIEnv* e, jobject c, jint name) {
-	const GLubyte* value = glGetString((GLenum) name);
-
-	return (*e)->NewStringUTF(e, (const char*)value); 
-}
-
-JNIEXPORT jint JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glGetUniformLocation(JNIEnv* e, jobject c, jint program, jstring name) {
-    jint _exception = 0;
-    const char * _exceptionType = NULL;
-    const char * _exceptionMessage = NULL;
-    GLint _returnValue = 0;
-    const char* _nativename = 0;
-
-    if (!name) {
-        _exception = 1;
-        _exceptionType = "java/lang/IllegalArgumentException";
-        _exceptionMessage = "name == null";
-        goto exit;
-    }
-    _nativename = (*e)->GetStringUTFChars(e, name, 0);
-
-    _returnValue = glGetUniformLocation(
-        (GLuint)program,
-        (char *)_nativename
-    );
-
-exit:
-    if (_nativename) {
-        (*e)->ReleaseStringUTFChars(e, name, _nativename);
-    }
-
-    if (_exception) {
-        jniThrowException(e, _exceptionType, _exceptionMessage);
-    }
-    return (jint)_returnValue;
-}
-
-JNIEXPORT jboolean JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glIsEnabled(JNIEnv* e, jobject c, jint cap) {
-    GLboolean _returnValue;
-    _returnValue = glIsEnabled(
-        (GLenum)cap
-    );
-    return (jboolean)_returnValue;
-}
-
-JNIEXPORT jboolean JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glIsFramebuffer(JNIEnv* e, jobject c, jint framebuffer) {
-    GLboolean _returnValue;
-    _returnValue = glIsFramebuffer(
-        (GLuint)framebuffer
-    );
-    return (jboolean)_returnValue;
-}
-
-JNIEXPORT jboolean JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glIsRenderbuffer(JNIEnv* e, jobject c, jint renderbuffer) {
-    GLboolean _returnValue;
-    _returnValue = glIsRenderbuffer(
-        (GLuint)renderbuffer
-    );
-    return (jboolean)_returnValue;
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glLineWidth(JNIEnv* e, jobject c, jfloat width) {
-    glLineWidth(
-        (GLfloat)width
-    );
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glLinkProgram(JNIEnv* e, jobject c, jint program) {
-    glLinkProgram(
-        (GLuint)program
-    );
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glPixelStorei(JNIEnv* e, jobject c, jint pname, jint param) {
-    glPixelStorei(
-        (GLenum)pname,
-        (GLint)param
-    );
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glPolygonOffset(JNIEnv* e, jobject c, jfloat factor, jfloat units) {
-    glPolygonOffset(
-        (GLfloat)factor,
-        (GLfloat)units
-    );
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glReadPixels(JNIEnv* e, jobject c, jint vpX, jint vpY, jint vpW, jint vpH, jint format, jint type, jobject pixels_buf) {
-    jarray _array = (jarray) 0;
-    jint _bufferOffset = (jint) 0;
-    jint _remaining;
-    GLvoid *pixels = (GLvoid *) 0;
-
-    pixels = (GLvoid *)getPointer(e, pixels_buf, &_array, &_remaining, &_bufferOffset);
-    if (pixels == NULL) {
-        char * _pixelsBase = (char *)(*e)->GetPrimitiveArrayCritical(e, _array, (jboolean *) 0);
-        pixels = (GLvoid *) (_pixelsBase + _bufferOffset);
-    }
-    glReadPixels(
-        (GLint)vpX,
-        (GLint)vpY,
-        (GLsizei)vpW,
-        (GLsizei)vpH,
-        (GLenum)format,
-        (GLenum)type,
-        (GLvoid *)pixels
-    );
-    if (_array) {
-        releasePointer(e, _array, pixels, JNI_TRUE);
-    }
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glReadPixels2(JNIEnv* e, jobject c, jint vpX, jint vpY, jint vpW, jint vpH, jint format, jint type, jintArray pixels, jint offset, jint size) {
-	GLint* bufferNative = malloc(size);
-	
-    glReadPixels(
-        (GLint)vpX,
-        (GLint)vpY,
-        (GLsizei)vpW,
-        (GLsizei)vpH,
-        (GLenum)format,
-        (GLenum)type,
-        (GLvoid *)bufferNative
-    );
-	
-	(*e)->SetIntArrayRegion(e, pixels, offset, size, bufferNative);
-	
-	free(bufferNative);
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glRenderbufferStorage(JNIEnv* e, jobject c, jint target, jint internalformat, jint width, jint height) {
-    glRenderbufferStorage(
-        (GLenum)target,
-        (GLenum)internalformat,
-        (GLsizei)width,
-        (GLsizei)height
-    );
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glScissor(JNIEnv* e, jobject c, jint x, jint y, jint width, jint height) {
-    glScissor(
-        (GLint)x,
-        (GLint)y,
-        (GLsizei)width,
-        (GLsizei)height
-    );
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glShaderSource(JNIEnv* e, jobject c, jint shader, jstring string) {
-	const char *stringNative = (*e)->GetStringUTFChars(e, string, NULL);
-	glShaderSource(shader, 1, &stringNative, NULL);
-	//jsize stringLen = (*e)->GetStringUTFLength(e, string);
-	//const char** code = { stringNative };
-	//const GLint* length = { stringLen };
-	
-	printf("upload shader source: %s", stringNative);
-
-	//glShaderSource(shader, 1, code, length);
-	
-	(*e)->ReleaseStringUTFChars(e, string, stringNative);
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glStencilFuncSeparate(JNIEnv* e, jobject c, jint face, jint func, jint ref, jint mask) {
-    glStencilFuncSeparate(
-        (GLenum) face,
-        (GLenum) func,
-        (GLint) ref,
-        (GLuint) mask
-    );
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glStencilOpSeparate(JNIEnv* e, jobject c, jint face, jint sfail, jint dpfail, jint dppass) {
-    glStencilOpSeparate(
-        (GLenum) face,
-        (GLenum) sfail,
-        (GLenum) dpfail,
-        (GLenum) dppass
-    );
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glTexImage2D(JNIEnv* e, jobject c, jint target, jint level, jint internalformat, jint width, jint height, jint border, jint format, jint type, jobject pixels_buf) {
-    jarray _array = (jarray) 0;
-    jint _bufferOffset = (jint) 0;
-    jint _remaining;
-    GLvoid *pixels = (GLvoid *) 0;
-
-    if (pixels_buf) {
-        pixels = (GLvoid *)getPointer(e, pixels_buf, &_array, &_remaining, &_bufferOffset);
-    }
-    if (pixels_buf && pixels == NULL) {
-        char * _pixelsBase = (char *)(*e)->GetPrimitiveArrayCritical(e, _array, (jboolean *) 0);
-        pixels = (GLvoid *) (_pixelsBase + _bufferOffset);
-    }
-    glTexImage2D(
-        (GLenum)target,
-        (GLint)level,
-        (GLint)internalformat,
-        (GLsizei)width,
-        (GLsizei)height,
-        (GLint)border,
-        (GLenum)format,
-        (GLenum)type,
-        (GLvoid *)pixels
-    );
-    if (_array) {
-        releasePointer(e, _array, pixels, JNI_FALSE);
-    }
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glTexParameteri(JNIEnv* e, jobject c, jint target, jint pname, jint param) {
-    glTexParameteri(
-        (GLenum)target,
-        (GLenum)pname,
-        (GLint)param
-    );
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glTexParameterf(JNIEnv* e, jobject c, jint target, jint pname, jfloat param) {
-    glTexParameterf(
-        (GLenum)target,
-        (GLenum)pname,
-        (GLfloat)param
-    );
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glTexSubImage2D(JNIEnv* e, jobject c, jint target, jint level, jint xoffset, jint yoffset, jint width, jint height, jint format, jint type, jobject pixels_buf) {
-    jarray _array = (jarray) 0;
-    jint _bufferOffset = (jint) 0;
-    jint _remaining;
-    GLvoid *pixels = (GLvoid *) 0;
-
-    if (pixels_buf) {
-        pixels = (GLvoid *)getPointer(e, pixels_buf, &_array, &_remaining, &_bufferOffset);
-    }
-    if (pixels_buf && pixels == NULL) {
-        char * _pixelsBase = (char *)(*e)->GetPrimitiveArrayCritical(e, _array, (jboolean *) 0);
-        pixels = (GLvoid *) (_pixelsBase + _bufferOffset);
-    }
-    glTexSubImage2D(
-        (GLenum)target,
-        (GLint)level,
-        (GLint)xoffset,
-        (GLint)yoffset,
-        (GLsizei)width,
-        (GLsizei)height,
-        (GLenum)format,
-        (GLenum)type,
-        (GLvoid *)pixels
-    );
-    if (_array) {
-        releasePointer(e, _array, pixels, JNI_FALSE);
-    }
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glUniform1f(JNIEnv* e, jobject c, jint location, jfloat x) {
-    glUniform1f(
-        (GLint)location,
-        (GLfloat)x
-    );
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glUniform1fv(JNIEnv* e, jobject c, jint location, jint count, jobject v_buf) {
-    jint _exception = 0;
-    const char * _exceptionType = NULL;
-    const char * _exceptionMessage = NULL;
-    jarray _array = (jarray) 0;
-    jint _bufferOffset = (jint) 0;
-    jint _remaining;
-    GLfloat *v = (GLfloat *) 0;
-
-    v = (GLfloat *)getPointer(e, v_buf, &_array, &_remaining, &_bufferOffset);
-    if (_remaining < count) {
-        _exception = 1;
-        _exceptionType = "java/lang/IllegalArgumentException";
-        _exceptionMessage = "remaining() < count < needed";
-        goto exit;
-    }
-    if (v == NULL) {
-        char * _vBase = (char *)(*e)->GetPrimitiveArrayCritical(e, _array, (jboolean *) 0);
-        v = (GLfloat *) (_vBase + _bufferOffset);
-    }
-    glUniform1fv(
-        (GLint)location,
-        (GLsizei)count,
-        (GLfloat *)v
-    );
-
-exit:
-    if (_array) {
-        releasePointer(e, _array, v, JNI_FALSE);
-    }
-    if (_exception) {
-        jniThrowException(e, _exceptionType, _exceptionMessage);
-    }
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glUniform1fv2(JNIEnv* e, jobject c, jint location, jint count, jfloatArray v, jint offset) {
-	jfloat *vNative = (*e)->GetFloatArrayElements(e, v, NULL);
-	
-    glUniform1fv(
-        (GLint)location,
-        (GLsizei)count,
-        (GLfloat *)(vNative + offset * sizeof(GLfloat))
-    );
-	
-	(*e)->ReleaseFloatArrayElements(e, v, vNative, 0);
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glUniform1i(JNIEnv* e, jobject c, jint location, jint x) {
-    glUniform1i(
-        (GLint)location,
-        (GLint)x
-    );
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glUniform1iv(JNIEnv* e, jobject c, jint location, jint count, jobject v_buf) {
-    jint _exception = 0;
-    const char * _exceptionType = NULL;
-    const char * _exceptionMessage = NULL;
-    jarray _array = (jarray) 0;
-    jint _bufferOffset = (jint) 0;
-    jint _remaining;
-    GLint *v = (GLint *) 0;
-
-    v = (GLint *)getPointer(e, v_buf, &_array, &_remaining, &_bufferOffset);
-    if (_remaining < count) {
-        _exception = 1;
-        _exceptionType = "java/lang/IllegalArgumentException";
-        _exceptionMessage = "remaining() < count < needed";
-        goto exit;
-    }
-    if (v == NULL) {
-        char * _vBase = (char *)(*e)->GetPrimitiveArrayCritical(e, _array, (jboolean *) 0);
-        v = (GLint *) (_vBase + _bufferOffset);
-    }
-    glUniform1iv(
-        (GLint)location,
-        (GLsizei)count,
-        (GLint *)v
-    );
-
-exit:
-    if (_array) {
-        releasePointer(e, _array, v, JNI_FALSE);
-    }
-    if (_exception) {
-        jniThrowException(e, _exceptionType, _exceptionMessage);
-    }
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glUniform1iv2(JNIEnv* e, jobject c, jint location, jint count, jintArray v, jint offset) {
-	jint *vNative = (*e)->GetIntArrayElements(e, v, NULL);
-	
-    glUniform1iv(
-        (GLint)location,
-        (GLsizei)count,
-        (GLint *)(vNative + offset * sizeof(GLint))
-    );
-	glUniform1iv(location, count, vNative + offset);
-	
-	(*e)->ReleaseIntArrayElements(e, v, vNative, 0);
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glUniform2f(JNIEnv* e, jobject c, jint location, jfloat x, jfloat y) {
-    glUniform2f(
-        (GLint)location,
-        (GLfloat)x,
-        (GLfloat)y
-    );
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glUniform2fv(JNIEnv* e, jobject c, jint location, jint count, jobject v_buf) {
-    jint _exception = 0;
-    const char * _exceptionType = NULL;
-    const char * _exceptionMessage = NULL;
-    jarray _array = (jarray) 0;
-    jint _bufferOffset = (jint) 0;
-    jint _remaining;
-    GLfloat *v = (GLfloat *) 0;
-
-    v = (GLfloat *)getPointer(e, v_buf, &_array, &_remaining, &_bufferOffset);
-    if (_remaining < count*2) {
-        _exception = 1;
-        _exceptionType = "java/lang/IllegalArgumentException";
-        _exceptionMessage = "remaining() < count*2 < needed";
-        goto exit;
-    }
-    if (v == NULL) {
-        char * _vBase = (char *)(*e)->GetPrimitiveArrayCritical(e, _array, (jboolean *) 0);
-        v = (GLfloat *) (_vBase + _bufferOffset);
-    }
-    glUniform2fv(
-        (GLint)location,
-        (GLsizei)count,
-        (GLfloat *)v
-    );
-
-exit:
-    if (_array) {
-        releasePointer(e, _array, v, JNI_FALSE);
-    }
-    if (_exception) {
-        jniThrowException(e, _exceptionType, _exceptionMessage);
-    }
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glUniform2fv2(JNIEnv* e, jobject c, jint location, jint count, jfloatArray v, jint offset) {
-	jfloat *vNative = (*e)->GetFloatArrayElements(e, v, NULL);
-	
-    glUniform2fv(
-        (GLint)location,
-        (GLsizei)count,
-        (GLfloat *)(vNative + offset * sizeof(GLfloat))
-    );
-	
-	(*e)->ReleaseFloatArrayElements(e, v, vNative, 0);
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glUniform3f(JNIEnv* e, jobject c, jint location, jfloat x, jfloat y, jfloat z) {
-    glUniform3f(
-        (GLint)location,
-        (GLfloat)x,
-        (GLfloat)y,
-        (GLfloat)z
-    );
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glUniform3fv(JNIEnv* e, jobject c, jint location, jint count, jobject v_buf) {
-    jint _exception = 0;
-    const char * _exceptionType = NULL;
-    const char * _exceptionMessage = NULL;
-    jarray _array = (jarray) 0;
-    jint _bufferOffset = (jint) 0;
-    jint _remaining;
-    GLfloat *v = (GLfloat *) 0;
-
-    v = (GLfloat *)getPointer(e, v_buf, &_array, &_remaining, &_bufferOffset);
-    if (_remaining < count * 3) {
-        _exception = 1;
-        _exceptionType = "java/lang/IllegalArgumentException";
-        _exceptionMessage = "remaining() < count*3 < needed";
-        goto exit;
-    }
-    if (v == NULL) {
-        char * _vBase = (char *)(*e)->GetPrimitiveArrayCritical(e, _array, (jboolean *) 0);
-        v = (GLfloat *) (_vBase + _bufferOffset);
-    }
-    glUniform3fv(
-        (GLint)location,
-        (GLsizei)count,
-        (GLfloat *)v
-    );
-
-exit:
-    if (_array) {
-        releasePointer(e, _array, v, JNI_FALSE);
-    }
-    if (_exception) {
-        jniThrowException(e, _exceptionType, _exceptionMessage);
-    }
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glUniform3fv2(JNIEnv* e, jobject c, jint location, jint count, jfloatArray v, jint offset) {
-	jfloat *vNative = (*e)->GetFloatArrayElements(e, v, NULL);
-	
-    glUniform3fv(
-        (GLint)location,
-        (GLsizei)count,
-        (GLfloat *)(vNative + offset * sizeof(GLfloat))
-    );
-	
-	(*e)->ReleaseFloatArrayElements(e, v, vNative, 0);
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glUniform4f(JNIEnv* e, jobject c, jint location, jfloat x, jfloat y, jfloat z, jfloat w) {
-    glUniform4f(
-        (GLint)location,
-        (GLfloat)x,
-        (GLfloat)y,
-        (GLfloat)z,
-        (GLfloat)w
-    );
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glUniform4fv(JNIEnv* e, jobject c, jint location, jint count, jobject v_buf) {
-    jint _exception = 0;
-    const char * _exceptionType = NULL;
-    const char * _exceptionMessage = NULL;
-    jarray _array = (jarray) 0;
-    jint _bufferOffset = (jint) 0;
-    jint _remaining;
-    GLfloat *v = (GLfloat *) 0;
-
-    v = (GLfloat *)getPointer(e, v_buf, &_array, &_remaining, &_bufferOffset);
-    if (_remaining < count * 4) {
-        _exception = 1;
-        _exceptionType = "java/lang/IllegalArgumentException";
-        _exceptionMessage = "remaining() < count*4 < needed";
-        goto exit;
-    }
-    if (v == NULL) {
-        char * _vBase = (char *)(*e)->GetPrimitiveArrayCritical(e, _array, (jboolean *) 0);
-        v = (GLfloat *) (_vBase + _bufferOffset);
-    }
-    glUniform4fv(
-        (GLint)location,
-        (GLsizei)count,
-        (GLfloat *)v
-    );
-
-exit:
-    if (_array) {
-        releasePointer(e, _array, v, JNI_FALSE);
-    }
-    if (_exception) {
-        jniThrowException(e, _exceptionType, _exceptionMessage);
-    }
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glUniform4fv2(JNIEnv* e, jobject c, jint location, jint count, jfloatArray v, jint offset) {
-	jfloat *vNative = (*e)->GetFloatArrayElements(e, v, NULL);
-	
-    glUniform4fv(
-        (GLint)location,
-        (GLsizei)count,
-        (GLfloat *)(vNative + offset * sizeof(GLfloat))
-    );
-	
-	(*e)->ReleaseFloatArrayElements(e, v, vNative, 0);
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glUniformMatrix3fv(JNIEnv* e, jobject c, jint location, jint count, jboolean transpose, jobject value_buf) {
-    jint _exception = 0;
-    const char * _exceptionType = NULL;
-    const char * _exceptionMessage = NULL;
-    jarray _array = (jarray) 0;
-    jint _bufferOffset = (jint) 0;
-    jint _remaining;
-    GLfloat *value = (GLfloat *) 0;
-
-    value = (GLfloat *)getPointer(e, value_buf, &_array, &_remaining, &_bufferOffset);
-    if (_remaining < count*9) {
-        _exception = 1;
-        _exceptionType = "java/lang/IllegalArgumentException";
-        _exceptionMessage = "remaining() < count*9 < needed";
-        goto exit;
-    }
-    if (value == NULL) {
-        char * _valueBase = (char *)(*e)->GetPrimitiveArrayCritical(e, _array, (jboolean *) 0);
-        value = (GLfloat *) (_valueBase + _bufferOffset);
-    }
-    glUniformMatrix3fv(
-        (GLint)location,
-        (GLsizei)count,
-        (GLboolean)transpose,
-        (GLfloat *)value
-    );
-
-exit:
-    if (_array) {
-        releasePointer(e, _array, value, JNI_FALSE);
-    }
-    if (_exception) {
-        jniThrowException(e, _exceptionType, _exceptionMessage);
-    }
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glUniformMatrix3fv2(JNIEnv* e, jobject c, jint location, jint count, jboolean transpose, jfloatArray value, jint offset) {
-	jfloat *vNative = (*e)->GetFloatArrayElements(e, value, NULL);
-	
-    glUniformMatrix3fv(
-        (GLint)location,
-        (GLsizei)count,
-        (GLboolean)transpose,
-        (GLfloat *)(vNative + offset * sizeof(GLfloat))
-    );
-	
-	(*e)->ReleaseFloatArrayElements(e, value, vNative, 0);
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glUniformMatrix4fv(JNIEnv* e, jobject c, jint location, jint count, jboolean transpose, jobject value_buf) {
-    jint _exception = 0;
-    const char * _exceptionType = NULL;
-    const char * _exceptionMessage = NULL;
-    jarray _array = (jarray) 0;
-    jint _bufferOffset = (jint) 0;
-    jint _remaining;
-    GLfloat *value = (GLfloat *) 0;
-
-    value = (GLfloat *)getPointer(e, value_buf, &_array, &_remaining, &_bufferOffset);
-    if (_remaining < count * 16) {
-        _exception = 1;
-        _exceptionType = "java/lang/IllegalArgumentException";
-        _exceptionMessage = "remaining() < count*16 < needed";
-        goto exit;
-    }
-    if (value == NULL) {
-        char * _valueBase = (char *)(*e)->GetPrimitiveArrayCritical(e, _array, (jboolean *) 0);
-        value = (GLfloat *) (_valueBase + _bufferOffset);
-    }
-    glUniformMatrix4fv(
-        (GLint)location,
-        (GLsizei)count,
-        (GLboolean)transpose,
-        (GLfloat *)value
-    );
-
-exit:
-    if (_array) {
-        releasePointer(e, _array, value, JNI_FALSE);
-    }
-    if (_exception) {
-        jniThrowException(e, _exceptionType, _exceptionMessage);
-    }
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glUniformMatrix4fv2(JNIEnv* e, jobject c, jint location, jint count, jboolean transpose, jfloatArray value, jint offset) {
-	jfloat *vNative = (*e)->GetFloatArrayElements(e, value, NULL);
-	
-    glUniformMatrix4fv(
-        (GLint)location,
-        (GLsizei)count,
-        (GLboolean)transpose,
-        (GLfloat *)(vNative + offset * sizeof(GLfloat))
-    );
-	
-	(*e)->ReleaseFloatArrayElements(e, value, vNative, 0);
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glUseProgram(JNIEnv* e, jobject c, jint program) {
-    glUseProgram(
-        (GLuint)program
-    );
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glVertexAttribPointer(JNIEnv* e, jobject c, jint indx, jint size, jint type, jboolean normalized, jint stride, jobject buffer) {
-    GLvoid *ptr = (GLvoid *) 0;
-
-    if (buffer) {
-        ptr = (GLvoid *) getDirectBufferPointer(e, buffer);
-        if (!ptr) {
-            return;
-        }
-    }
-    glVertexAttribPointer(
-        (GLuint)indx,
-        (GLint)size,
-        (GLenum)type,
-        (GLboolean)normalized,
-        (GLsizei)stride,
-        (GLvoid *)ptr
-    );
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glVertexAttribPointer2(JNIEnv* e, jclass c, jint indx, jint size, jint type, jboolean normalized, jint stride, jint offset) {
-	
-    glVertexAttribPointer(
-        (GLuint)indx,
-        (GLint)size,
-        (GLenum)type,
-        (GLboolean)normalized,
-        (GLsizei)stride,
-        (GLvoid *)(offset)
-    );
-}
-
-JNIEXPORT void JNICALL
-Java_com_jme3_renderer_ios_JmeIosGLES_glViewport(JNIEnv* e, jobject c, jint x, jint y, jint width, jint height) {
-    glViewport(
-        (GLint)x,
-        (GLint)y,
-        (GLsizei)width,
-        (GLsizei)height
-    );
-}
-
-JNIEXPORT void JNICALL 
-Java_com_jme3_renderer_ios_JmeIosGLES_glBeginQuery(JNIEnv* e, jobject c, jint target, jint query) {
-    glBeginQuery(
-        (GLint) target,
-        (GLint) query
-    );
-}
-
-JNIEXPORT void JNICALL 
-Java_com_jme3_renderer_ios_JmeIosGLES_glEndQuery(JNIEnv* e, jobject c, jint target)
-{
-    glEndQuery((GLint)target);
-}
-
-JNIEXPORT void JNICALL 
-Java_com_jme3_renderer_ios_JmeIosGLES_glGenQueries(JNIEnv* e, jobject c, jint count, jobject v_buf)
-{
-    jint _exception = 0;
-    const char * _exceptionType = NULL;
-    const char * _exceptionMessage = NULL;
-    jarray _array = (jarray) 0;
-    jint _bufferOffset = (jint) 0;
-    jint _remaining;
-    GLint *v = (GLint *) 0;
-
-    v = (GLint *)getPointer(e, v_buf, &_array, &_remaining, &_bufferOffset);
-    if (_remaining < count) {
-        _exception = 1;
-        _exceptionType = "java/lang/IllegalArgumentException";
-        _exceptionMessage = "remaining() < count < needed";
-        goto exit;
-    }
-    if (v == NULL) {
-        char * _vBase = (char *)(*e)->GetPrimitiveArrayCritical(e, _array, (jboolean *) 0);
-        v = (GLint *) (_vBase + _bufferOffset);
-    }
-    glGenQueries(
-        (GLsizei)count,
-        (GLint *)v
-    );
-
-exit:
-    if (_array) {
-        releasePointer(e, _array, v, JNI_FALSE);
-    }
-    if (_exception) {
-        jniThrowException(e, _exceptionType, _exceptionMessage);
-    }
-}
-
-JNIEXPORT void JNICALL 
-Java_com_jme3_renderer_ios_JmeIosGLES_glGetQueryObjectuiv(JNIEnv* e, jobject c, jint query, jint pname, jintArray params_ref)
-{
-    jint _exception = 0;
-    const char * _exceptionType;
-    const char * _exceptionMessage;
-    GLint *params_base = (GLint *) 0;
-    jint _remaining;
-    GLint *params = (GLint *) 0;
-    int _needed = 0;
-
-    if (!params_ref) {
-        _exception = 1;
-        _exceptionType = "java/lang/IllegalArgumentException";
-        _exceptionMessage = "params == null";
-        goto exit;
-    }
-
-    _remaining = (*e)->GetArrayLength(e, params_ref);
-    _needed = getNeededCount(pname);
-    // if we didn't find this pname, we just assume the user passed
-    // an array of the right size -- this might happen with extensions
-    // or if we forget an enum here.
-    if (_remaining < _needed) {
-        _exception = 1;
-        _exceptionType = "java/lang/IllegalArgumentException";
-        _exceptionMessage = "length < needed";
-        goto exit;
-    }
-    params_base = (GLint *)
-        (*e)->GetPrimitiveArrayCritical(e, params_ref, (jboolean *)0);
-    params = params_base;
-
-    glGetQueryObjectuiv(
-        (GLint)query,
-        (GLenum)pname,
-        (GLint *)params
-    );
-
-exit:
-    if (params_base) {
-        (*e)->ReleasePrimitiveArrayCritical(e, params_ref, params_base,
-            _exception ? JNI_ABORT: 0);
-    }
-    if (_exception) {
-        jniThrowException(e, _exceptionType, _exceptionMessage);
-    }
-}
-
-JNIEXPORT void JNICALL 
-Java_com_jme3_renderer_ios_JmeIosGLES_glGetQueryiv(JNIEnv* e, jobject c, jint target, jint pname, jintArray params_ref)
-{
-    jint _exception = 0;
-    const char * _exceptionType;
-    const char * _exceptionMessage;
-    GLint *params_base = (GLint *) 0;
-    jint _remaining;
-    GLint *params = (GLint *) 0;
-    int _needed = 0;
-
-    if (!params_ref) {
-        _exception = 1;
-        _exceptionType = "java/lang/IllegalArgumentException";
-        _exceptionMessage = "params == null";
-        goto exit;
-    }
-
-    _remaining = (*e)->GetArrayLength(e, params_ref);
-    _needed = getNeededCount(pname);
-    // if we didn't find this pname, we just assume the user passed
-    // an array of the right size -- this might happen with extensions
-    // or if we forget an enum here.
-    if (_remaining < _needed) {
-        _exception = 1;
-        _exceptionType = "java/lang/IllegalArgumentException";
-        _exceptionMessage = "length < needed";
-        goto exit;
-    }
-    params_base = (GLint *)
-        (*e)->GetPrimitiveArrayCritical(e, params_ref, (jboolean *)0);
-    params = params_base;
-
-    glGetQueryiv(
-        (GLenum)target,
-        (GLenum)pname,
-        (GLint *)params
-    );
-
-exit:
-    if (params_base) {
-        (*e)->ReleasePrimitiveArrayCritical(e, params_ref, params_base,
-            _exception ? JNI_ABORT: 0);
-    }
-    if (_exception) {
-        jniThrowException(e, _exceptionType, _exceptionMessage);
-    }
-}
-
-JNIEXPORT void JNICALL 
-Java_com_jme3_renderer_ios_JmeIosGLES_glBlitFramebuffer(JNIEnv* e, jobject c, jint srcX0, jint srcY0, jint srcX1, jint srcY1, jint dstX0, jint dstY0, jint dstX1, jint dstY1, jint mask, jint filter)
-{
-    glBlitFramebuffer( 	
-        (GLint) srcX0,
-        (GLint) srcY0,
-        (GLint) srcX1,
-        (GLint) srcY1,
-        (GLint) dstX0,
-        (GLint) dstY0,
-        (GLint) dstX1,
-        (GLint) dstY1,
-        (GLbitfield) mask,
-        (GLenum) filter
-    );
-}
-
-JNIEXPORT void JNICALL 
-Java_com_jme3_renderer_ios_JmeIosGLES_glDrawArraysInstanced(JNIEnv* e, jobject c, jint mode, jint first, jint count, jint primcount)
-{
-    glDrawArraysInstanced(
-        (GLenum) mode,
-        (GLint) first,
-        (GLsizei) count,
-        (GLsizei) primcount
-    );
-}
-
-JNIEXPORT void JNICALL 
-Java_com_jme3_renderer_ios_JmeIosGLES_glDrawBuffers(JNIEnv* e, jobject c, jint count, jobject v_buf)
-{
-    jint _exception = 0;
-    const char * _exceptionType = NULL;
-    const char * _exceptionMessage = NULL;
-    jarray _array = (jarray) 0;
-    jint _bufferOffset = (jint) 0;
-    jint _remaining;
-    GLint *v = (GLint *) 0;
-
-    v = (GLint *)getPointer(e, v_buf, &_array, &_remaining, &_bufferOffset);
-    if (_remaining < count) {
-        _exception = 1;
-        _exceptionType = "java/lang/IllegalArgumentException";
-        _exceptionMessage = "remaining() < count < needed";
-        goto exit;
-    }
-    if (v == NULL) {
-        char * _vBase = (char *)(*e)->GetPrimitiveArrayCritical(e, _array, (jboolean *) 0);
-        v = (GLint *) (_vBase + _bufferOffset);
-    }
-    glDrawBuffers(
-        (GLsizei)count,
-        (GLint *)v
-    );
-
-exit:
-    if (_array) {
-        releasePointer(e, _array, v, JNI_FALSE);
-    }
-    if (_exception) {
-        jniThrowException(e, _exceptionType, _exceptionMessage);
-    }
-}
-
-JNIEXPORT void JNICALL 
-Java_com_jme3_renderer_ios_JmeIosGLES_glDrawElementsInstanced(JNIEnv* e, jobject c, jint mode, jint count, jint type, jlong indices, jint primcount)
-{
-    glDrawElementsInstanced(
-        (GLenum) mode,
-        (GLsizei) count,
-        (GLenum) type,
-        (const void *) indices,
-        (GLsizei) primcount
-    );
-}
-
-JNIEXPORT void JNICALL 
-Java_com_jme3_renderer_ios_JmeIosGLES_glVertexAttribDivisor(JNIEnv* e, jobject c, jint index, jint divisor)
-{
-    glVertexAttribDivisor(
-        (GLint) index,
-        (GLint) divisor
-    );
-}
-
-JNIEXPORT void JNICALL 
-Java_com_jme3_renderer_ios_JmeIosGLES_glFramebufferTextureLayer(JNIEnv* e, jobject c, jint target, jint attachment, jint texture, jint level, jint layer)
-{
-    glFramebufferTextureLayer(
-        (GLenum) target,
-        (GLenum) attachment,
-        (GLuint) texture,
-        (GLint) level,
-        (GLint) layer
-    );
-}
-
-JNIEXPORT void JNICALL 
-Java_com_jme3_renderer_ios_JmeIosGLES_glReadBuffer(JNIEnv* e, jobject c, jint src)
-{
-    glReadBuffer((GLenum) src);
-}
-
-JNIEXPORT void JNICALL 
-Java_com_jme3_renderer_ios_JmeIosGLES_glCompressedTexImage3D(JNIEnv* e, jobject c, jint target, jint level, jint internalFormat, jint width, jint height, jint depth, jint border, jint imageSize, jobject pixels_buf)
-{
-    jarray _array = (jarray) 0;
-    jint _bufferOffset = (jint) 0;
-    jint _remaining;
-    GLvoid *pixels = (GLvoid *) 0;
-
-    if (pixels_buf) {
-        pixels = (GLvoid *)getPointer(e, pixels_buf, &_array, &_remaining, &_bufferOffset);
-    }
-    if (pixels_buf && pixels == NULL) {
-        char * _pixelsBase = (char *)(*e)->GetPrimitiveArrayCritical(e, _array, (jboolean *) 0);
-        pixels = (GLvoid *) (_pixelsBase + _bufferOffset);
-    }
-        
-    glCompressedTexImage3D(
-        (GLenum) target,
-        (GLint) level,
-        (GLenum) internalFormat,
-        (GLsizei) width,
-        (GLsizei) height,
-        (GLsizei) depth,
-        (GLint) border,
-        (GLsizei) imageSize,
-        (GLvoid *)pixels
-    );
-
-    if (_array) {
-        releasePointer(e, _array, pixels, JNI_FALSE);
-    }
-}
-
-JNIEXPORT void JNICALL 
-Java_com_jme3_renderer_ios_JmeIosGLES_glCompressedTexSubImage3D(JNIEnv* e, jobject c, jint target, jint level, jint xoffset, jint yoffset, jint zoffset, jint width, jint height, jint depth, jint format, jint imageSize, jobject pixels_buf)
-{
-    jarray _array = (jarray) 0;
-    jint _bufferOffset = (jint) 0;
-    jint _remaining;
-    GLvoid *pixels = (GLvoid *) 0;
-
-    if (pixels_buf) {
-        pixels = (GLvoid *)getPointer(e, pixels_buf, &_array, &_remaining, &_bufferOffset);
-    }
-    if (pixels_buf && pixels == NULL) {
-        char * _pixelsBase = (char *)(*e)->GetPrimitiveArrayCritical(e, _array, (jboolean *) 0);
-        pixels = (GLvoid *) (_pixelsBase + _bufferOffset);
-    }
-        
-    glCompressedTexSubImage3D(
-        (GLenum) target,
-        (GLint) level,
-        (GLint) xoffset,
-        (GLint) yoffset,
-        (GLint) zoffset,
-        (GLsizei) width,
-        (GLsizei) height,
-        (GLsizei) depth,
-        (GLenum) format,
-        (GLsizei) imageSize,
-        (GLvoid *)pixels
-    );
-
-    if (_array) {
-        releasePointer(e, _array, pixels, JNI_FALSE);
-    }
-}
-
-JNIEXPORT void JNICALL 
-Java_com_jme3_renderer_ios_JmeIosGLES_glTexImage3D(JNIEnv* e, jobject c, jint target, jint level, jint internalFormat, jint width, jint height, jint depth, jint border, jint format, jint type, jobject pixels_buf)
-{
-    jarray _array = (jarray) 0;
-    jint _bufferOffset = (jint) 0;
-    jint _remaining;
-    GLvoid *pixels = (GLvoid *) 0;
-
-    if (pixels_buf) {
-        pixels = (GLvoid *)getPointer(e, pixels_buf, &_array, &_remaining, &_bufferOffset);
-    }
-    if (pixels_buf && pixels == NULL) {
-        char * _pixelsBase = (char *)(*e)->GetPrimitiveArrayCritical(e, _array, (jboolean *) 0);
-        pixels = (GLvoid *) (_pixelsBase + _bufferOffset);
-    }
-        
-    glTexImage3D(
-        (GLenum) target,
-        (GLint) level,
-        (GLint) internalFormat,
-        (GLsizei) width,
-        (GLsizei) height,
-        (GLsizei) depth,
-        (GLint) border,
-        (GLenum) format,
-        (GLenum) type,
-        (GLvoid *)pixels
-    );
-
-    if (_array) {
-        releasePointer(e, _array, pixels, JNI_FALSE);
-    }
-}
-
-JNIEXPORT void JNICALL 
-Java_com_jme3_renderer_ios_JmeIosGLES_glTexSubImage3D(JNIEnv* e, jobject c, jint target, jint level, jint xoffset, jint yoffset, jint zoffset, jint width, jint height, jint depth, jint format, jint type, jobject pixels_buf)
-{
-    jarray _array = (jarray) 0;
-    jint _bufferOffset = (jint) 0;
-    jint _remaining;
-    GLvoid *pixels = (GLvoid *) 0;
-
-    if (pixels_buf) {
-        pixels = (GLvoid *)getPointer(e, pixels_buf, &_array, &_remaining, &_bufferOffset);
-    }
-    if (pixels_buf && pixels == NULL) {
-        char * _pixelsBase = (char *)(*e)->GetPrimitiveArrayCritical(e, _array, (jboolean *) 0);
-        pixels = (GLvoid *) (_pixelsBase + _bufferOffset);
-    }
-        
-    glTexSubImage3D(
-        (GLenum) target,
-        (GLint) level,
-        (GLint) xoffset,
-        (GLint) yoffset,
-        (GLint) zoffset,
-        (GLsizei) width,
-        (GLsizei) height,
-        (GLsizei) depth,
-        (GLenum) format,
-        (GLenum) type,
-        (GLvoid *)pixels
-    );
-
-    if (_array) {
-        releasePointer(e, _array, pixels, JNI_FALSE);
-    }
-}
-
-
-static int
-allowIndirectBuffers(JNIEnv *e) {
-    return 0;
-}
-
-static void *
-getDirectBufferPointer(JNIEnv *e, jobject buffer) {
-    if (!buffer) {
-        return NULL;
-    }
-    
-    if (!initialized) {
-    	nativeClassInit(e);
-    }
-
-    void* buf = (*e)->GetDirectBufferAddress(e, buffer);
-    if (buf) {
-        jint position = (*e)->GetIntField(e, buffer, positionID);
-        jint elementSizeShift = getBufferElementSize(e, buffer);
-        buf = ((char*) buf) + (position << elementSizeShift);
-    } else {
-            jniThrowException(e, "java/lang/IllegalArgumentException",
-                              "Must use a native order direct Buffer");
-    }
-    return buf;
-}
-
-static void *
-getPointer(JNIEnv *e, jobject buffer, jarray *array, jint *remaining, jint *offset) {
-    jint position;
-    jint limit;
-    jint elementSizeShift;
-    jlong pointer;
-    
-    if (!buffer) {
-        return NULL;
-    }
-    
-    if (!initialized) {
-    	nativeClassInit(e);
-    }
-
-    position = (*e)->GetIntField(e, buffer, positionID);
-    limit = (*e)->GetIntField(e, buffer, limitID);
-    elementSizeShift = getBufferElementSize(e, buffer);
-    
-    array = (void*) NULL;
-    *remaining = (limit - position) << elementSizeShift; 
-    *offset = position;
-    
-    return getDirectBufferPointer(e, buffer);
-}
-
-
-static void
-nativeClassInit(JNIEnv *e) {
-    if (!byteBufferClass) {
-    	jclass byteBufferClassLocal = (*e)->FindClass(e, "java/nio/ByteBuffer");
-    	byteBufferClass = (jclass) (*e)->NewGlobalRef(e, byteBufferClassLocal);
-    }
-    
-    if (!shortBufferClass) {
-    	jclass shortBufferClassLocal = (*e)->FindClass(e, "java/nio/ShortBuffer");
-    	shortBufferClass = (jclass) (*e)->NewGlobalRef(e, shortBufferClassLocal);
-    }
-    
-    if (!intBufferClass) {
-    	jclass intBufferClassLocal = (*e)->FindClass(e, "java/nio/IntBuffer");
-    	intBufferClass = (jclass) (*e)->NewGlobalRef(e, intBufferClassLocal);
-    }
-    
-    if (!floatBufferClass) {
-    	jclass floatBufferClassLocal = (*e)->FindClass(e, "java/nio/FloatBuffer");
-    	floatBufferClass = (jclass) (*e)->NewGlobalRef(e, floatBufferClassLocal);
-    }
-    
-    if (!bufferClass) {
-        jclass bufferClassLocal = (*e)->FindClass(e, "java/nio/Buffer");
-        bufferClass = (jclass) (*e)->NewGlobalRef(e, bufferClassLocal);
-    }
-
-    if (!positionID && bufferClass) {
-	    positionID = (*e)->GetFieldID(e, bufferClass, "position", "I");
-	}
-
-    if (!limitID && bufferClass) {
-	    limitID = (*e)->GetFieldID(e, bufferClass, "limit", "I");
-	}
-
-	initialized = floatBufferClass && bufferClass && shortBufferClass && byteBufferClass
-			&& intBufferClass && positionID && limitID;
-			
-	printf("Initializion of java.nio.Buffer access functionality %s\n", initialized ? "succeeded" : "failed");
-}
-
-static void
-releasePointer(JNIEnv *e, jarray array, void *data, jboolean commit) {
-    (*e)->ReleasePrimitiveArrayCritical(e, array, data,
-					   commit ? 0 : JNI_ABORT);
-}
-
-static void
-jniThrowException(JNIEnv *e, const char* type, const char* message) {
-	jclass excCls = (*e)->FindClass(e, type);
-	if (excCls != 0) {
-    	(*e)->ThrowNew(e, excCls, message);
-    }
-}
-
-static jint
-getBufferElementSize(JNIEnv *e, jobject buffer) {
-    if (!buffer) {
-        return 0;
-    }
-
-	if ((*e)->IsInstanceOf(e, buffer, floatBufferClass) == JNI_TRUE) {
-		return 2;
-	} else if ((*e)->IsInstanceOf(e, buffer, intBufferClass) == JNI_TRUE) {
-		return 2;
-	} else if ((*e)->IsInstanceOf(e, buffer, shortBufferClass) == JNI_TRUE) {
-		return 1;
-	}
-	
-	//TODO: check other buffer types
-	return 0;
-}
-
-static int getNeededCount(GLint pname) {
-    int needed = 1;
-#ifdef GL_ES_VERSION_2_0
-    // GLES 2.x pnames
-    switch (pname) {
-        case GL_ALIASED_LINE_WIDTH_RANGE:
-        case GL_ALIASED_POINT_SIZE_RANGE:
-            needed = 2;
-            break;
-
-        case GL_BLEND_COLOR:
-        case GL_COLOR_CLEAR_VALUE:
-        case GL_COLOR_WRITEMASK:
-        case GL_SCISSOR_BOX:
-        case GL_VIEWPORT:
-            needed = 4;
-            break;
-
-        case GL_COMPRESSED_TEXTURE_FORMATS:
-            glGetIntegerv(GL_NUM_COMPRESSED_TEXTURE_FORMATS, &needed);
-            break;
-
-        case GL_SHADER_BINARY_FORMATS:
-            glGetIntegerv(GL_NUM_SHADER_BINARY_FORMATS, &needed);
-            break;
-    }
-#endif
-
-#ifdef GL_VERSION_ES_CM_1_1
-    // GLES 1.x pnames
-    switch (pname) {
-        case GL_ALIASED_LINE_WIDTH_RANGE:
-        case GL_ALIASED_POINT_SIZE_RANGE:
-        case GL_DEPTH_RANGE:
-        case GL_SMOOTH_LINE_WIDTH_RANGE:
-        case GL_SMOOTH_POINT_SIZE_RANGE:
-            needed = 2;
-            break;
-
-        case GL_CURRENT_NORMAL:
-        case GL_POINT_DISTANCE_ATTENUATION:
-            needed = 3;
-            break;
-
-        case GL_COLOR_CLEAR_VALUE:
-        case GL_COLOR_WRITEMASK:
-        case GL_CURRENT_COLOR:
-        case GL_CURRENT_TEXTURE_COORDS:
-        case GL_FOG_COLOR:
-        case GL_LIGHT_MODEL_AMBIENT:
-        case GL_SCISSOR_BOX:
-        case GL_VIEWPORT:
-            needed = 4;
-            break;
-
-        case GL_MODELVIEW_MATRIX:
-        case GL_PROJECTION_MATRIX:
-        case GL_TEXTURE_MATRIX:
-            needed = 16;
-            break;
-
-        case GL_COMPRESSED_TEXTURE_FORMATS:
-            glGetIntegerv(GL_NUM_COMPRESSED_TEXTURE_FORMATS, &needed);
-            break;
-    }
-#endif
-    return needed;
-}

+ 0 - 41
jme3-ios/ios-data/templates/src/boot.c

@@ -1,41 +0,0 @@
-#include <stdint.h>
-#include <stdlib.h>
-
-void __cxa_pure_virtual(void) { abort(); }
-
-#define EXPORT __attribute__ ((visibility("default"))) __attribute__ ((used))
-
-#define BOOTIMAGE_BIN(x) _binary_bootimage_bin_##x
-#define CODEIMAGE_BIN(x) _binary_codeimage_bin_##x
-
-extern const uint8_t BOOTIMAGE_BIN(start)[];
-extern const uint8_t BOOTIMAGE_BIN(end)[];
-
-EXPORT const uint8_t*
-bootimageBin(unsigned* size)
-{
-  *size = BOOTIMAGE_BIN(end) - BOOTIMAGE_BIN(start);
-  return BOOTIMAGE_BIN(start);
-}
-
-extern const uint8_t CODEIMAGE_BIN(start)[];
-extern const uint8_t CODEIMAGE_BIN(end)[];
-
-EXPORT const uint8_t*
-codeimageBin(unsigned* size)
-{
-  *size = CODEIMAGE_BIN(end) - CODEIMAGE_BIN(start);
-  return CODEIMAGE_BIN(start);
-}
-
-#define RESOURCES_JAR(x) _binary_resources_jar_##x
-
-extern const uint8_t RESOURCES_JAR(start)[];
-extern const uint8_t RESOURCES_JAR(end)[];
-
-EXPORT const uint8_t*
-resourcesJar(unsigned* size)
-{
-  *size = RESOURCES_JAR(end) - RESOURCES_JAR(start);
-  return RESOURCES_JAR(start);
-}

+ 0 - 138
jme3-ios/ios-data/templates/src/com_jme3_audio_ios_IosAL.c

@@ -1,138 +0,0 @@
-#include "com_jme3_audio_ios_IosAL.h"
-//#include "AL/al.h"
-//#include "AL/alext.h"
-
-#include "OpenAL/al.h"
-#include "OpenAL/alc.h"
-#include "OpenAL/oalMacOSX_OALExtensions.h"
-
-JNIEXPORT jstring JNICALL Java_com_jme3_audio_ios_IosAL_alGetString
-  (JNIEnv* env, jobject obj, jint param)
-{
-    return (*env)->NewStringUTF(env, alGetString(param));
-}
-
-JNIEXPORT jint JNICALL Java_com_jme3_audio_ios_IosAL_alGenSources
-  (JNIEnv *env, jobject obj)
-{
-    ALuint source;
-    alGenSources(1, &source);
-    return source;
-}
-
-JNIEXPORT jint JNICALL Java_com_jme3_audio_ios_IosAL_alGetError
-  (JNIEnv *env, jobject obj)
-{
-    return alGetError();
-}
-
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosAL_alDeleteSources
-  (JNIEnv* env, jobject obj, jint numSources, jobject intbufSources)
-{
-    ALuint* pIntBufSources = (ALuint*) (*env)->GetDirectBufferAddress(env, intbufSources);
-    alDeleteSources((ALsizei)numSources, pIntBufSources);
-}
-
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosAL_alGenBuffers
-  (JNIEnv* env, jobject obj, jint numBuffers, jobject intbufBuffers)
-{
-    ALuint* pIntBufBuffers = (ALuint*) (*env)->GetDirectBufferAddress(env, intbufBuffers);
-    alGenBuffers((ALsizei)numBuffers, pIntBufBuffers);
-}
-
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosAL_alDeleteBuffers
-  (JNIEnv* env, jobject obj, jint numBuffers, jobject intbufBuffers)
-{
-    ALuint* pIntBufBuffers = (ALuint*) (*env)->GetDirectBufferAddress(env, intbufBuffers);
-    alDeleteBuffers((ALsizei)numBuffers, pIntBufBuffers);
-}
-
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosAL_alSourceStop
-  (JNIEnv *env, jobject obj, jint source)
-{
-    alSourceStop((ALuint)source);
-}
-
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosAL_alSourcei
-  (JNIEnv *env, jobject obj, jint source, jint param, jint value)
-{
-    alSourcei((ALuint)source, (ALenum)param, (ALint)value);
-}
-
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosAL_alBufferData
-  (JNIEnv* env, jobject obj, jint buffer, jint format, jobject bufferData, jint bufferSize, jint frequency)
-{
-    ALuint* pBufferData = (ALuint*) (*env)->GetDirectBufferAddress(env, bufferData);
-    alBufferData((ALuint)buffer, (ALenum)format, pBufferData, (ALsizei)bufferSize, (ALsizei)frequency);
-}
-
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosAL_alSourcePlay
-  (JNIEnv *env, jobject obj, jint source)
-{
-    alSourcePlay((ALuint)source);
-}
-
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosAL_alSourcePause
-  (JNIEnv *env, jobject obj, jint source)
-{
-    alSourcePause((ALuint)source);
-}
-
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosAL_alSourcef
-  (JNIEnv *env, jobject obj, jint source, jint param, jfloat value)
-{
-    alSourcef((ALuint)source, (ALenum)param, (ALfloat)value);
-}
-
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosAL_alSource3f
-  (JNIEnv *env, jobject obj, jint source, jint param, jfloat value1, jfloat value2, jfloat value3)
-{
-    alSource3f((ALuint)source, (ALenum)param, (ALfloat)value1, (ALfloat)value2, (ALfloat)value3);
-}
-
-JNIEXPORT jint JNICALL Java_com_jme3_audio_ios_IosAL_alGetSourcei
-  (JNIEnv *env, jobject obj, jint source, jint param)
-{
-    ALint result;
-    alGetSourcei((ALuint)source, (ALenum)param, &result);
-    return (jint)result;
-}
-
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosAL_alSourceUnqueueBuffers
-  (JNIEnv* env, jobject obj, jint source, jint numBuffers, jobject buffers)
-{
-    ALuint* pBuffers = (ALuint*) (*env)->GetDirectBufferAddress(env, buffers);
-    alSourceUnqueueBuffers((ALuint)source, (ALsizei)numBuffers, pBuffers);
-}
-
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosAL_alSourceQueueBuffers
-  (JNIEnv* env, jobject obj, jint source, jint numBuffers, jobject buffers)
-{
-    ALuint* pBuffers = (ALuint*) (*env)->GetDirectBufferAddress(env, buffers);
-    alSourceQueueBuffers((ALuint)source, (ALsizei)numBuffers, pBuffers);
-}
-
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosAL_alListener
-  (JNIEnv* env, jobject obj, jint param, jobject bufferData)
-{
-    ALfloat* pBufferData = (ALfloat*) (*env)->GetDirectBufferAddress(env, bufferData);
-    alListenerfv((ALenum)param, pBufferData);
-}
-
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosAL_alListenerf
-  (JNIEnv *env, jobject obj, jint param, jfloat value)
-{
-    alListenerf((ALenum)param, (ALfloat)value);
-}
-
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosAL_alListener3f
-  (JNIEnv *env, jobject obj, jint param, jfloat value1, jfloat value2, jfloat value3)
-{
-    alListener3f((ALenum)param, (ALfloat)value1, (ALfloat)value2, (ALfloat)value3);
-}
-
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosAL_alSource3i
-  (JNIEnv *env, jobject obj, jint source, jint param, jint value1, jint value2, jint value3)
-{
-    alSource3i((ALuint)source, (ALenum)param, (ALint)value1, (ALint)value2, (ALint)value3);
-}

+ 0 - 173
jme3-ios/ios-data/templates/src/com_jme3_audio_ios_IosAL.h

@@ -1,173 +0,0 @@
-/* DO NOT EDIT THIS FILE - it is machine generated */
-#include <jni.h>
-/* Header for class com_jme3_audio_ios_IosAL */
-
-#ifndef _Included_com_jme3_audio_ios_IosAL
-#define _Included_com_jme3_audio_ios_IosAL
-#ifdef __cplusplus
-extern "C" {
-#endif
-/*
- * Class:     com_jme3_audio_ios_IosAL
- * Method:    alGetString
- * Signature: (I)Ljava/lang/String;
- */
-JNIEXPORT jstring JNICALL Java_com_jme3_audio_ios_IosAL_alGetString
-  (JNIEnv *, jobject, jint);
-
-/*
- * Class:     com_jme3_audio_ios_IosAL
- * Method:    alGenSources
- * Signature: ()I
- */
-JNIEXPORT jint JNICALL Java_com_jme3_audio_ios_IosAL_alGenSources
-  (JNIEnv *, jobject);
-
-/*
- * Class:     com_jme3_audio_ios_IosAL
- * Method:    alGetError
- * Signature: ()I
- */
-JNIEXPORT jint JNICALL Java_com_jme3_audio_ios_IosAL_alGetError
-  (JNIEnv *, jobject);
-
-/*
- * Class:     com_jme3_audio_ios_IosAL
- * Method:    alDeleteSources
- * Signature: (ILjava/nio/IntBuffer;)V
- */
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosAL_alDeleteSources
-  (JNIEnv *, jobject, jint, jobject);
-
-/*
- * Class:     com_jme3_audio_ios_IosAL
- * Method:    alGenBuffers
- * Signature: (ILjava/nio/IntBuffer;)V
- */
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosAL_alGenBuffers
-  (JNIEnv *, jobject, jint, jobject);
-
-/*
- * Class:     com_jme3_audio_ios_IosAL
- * Method:    alDeleteBuffers
- * Signature: (ILjava/nio/IntBuffer;)V
- */
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosAL_alDeleteBuffers
-  (JNIEnv *, jobject, jint, jobject);
-
-/*
- * Class:     com_jme3_audio_ios_IosAL
- * Method:    alSourceStop
- * Signature: (I)V
- */
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosAL_alSourceStop
-  (JNIEnv *, jobject, jint);
-
-/*
- * Class:     com_jme3_audio_ios_IosAL
- * Method:    alSourcei
- * Signature: (III)V
- */
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosAL_alSourcei
-  (JNIEnv *, jobject, jint, jint, jint);
-
-/*
- * Class:     com_jme3_audio_ios_IosAL
- * Method:    alBufferData
- * Signature: (IILjava/nio/ByteBuffer;II)V
- */
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosAL_alBufferData
-  (JNIEnv *, jobject, jint, jint, jobject, jint, jint);
-
-/*
- * Class:     com_jme3_audio_ios_IosAL
- * Method:    alSourcePlay
- * Signature: (I)V
- */
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosAL_alSourcePlay
-  (JNIEnv *, jobject, jint);
-
-/*
- * Class:     com_jme3_audio_ios_IosAL
- * Method:    alSourcePause
- * Signature: (I)V
- */
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosAL_alSourcePause
-  (JNIEnv *, jobject, jint);
-
-/*
- * Class:     com_jme3_audio_ios_IosAL
- * Method:    alSourcef
- * Signature: (IIF)V
- */
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosAL_alSourcef
-  (JNIEnv *, jobject, jint, jint, jfloat);
-
-/*
- * Class:     com_jme3_audio_ios_IosAL
- * Method:    alSource3f
- * Signature: (IIFFF)V
- */
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosAL_alSource3f
-  (JNIEnv *, jobject, jint, jint, jfloat, jfloat, jfloat);
-
-/*
- * Class:     com_jme3_audio_ios_IosAL
- * Method:    alGetSourcei
- * Signature: (II)I
- */
-JNIEXPORT jint JNICALL Java_com_jme3_audio_ios_IosAL_alGetSourcei
-  (JNIEnv *, jobject, jint, jint);
-
-/*
- * Class:     com_jme3_audio_ios_IosAL
- * Method:    alSourceUnqueueBuffers
- * Signature: (IILjava/nio/IntBuffer;)V
- */
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosAL_alSourceUnqueueBuffers
-  (JNIEnv *, jobject, jint, jint, jobject);
-
-/*
- * Class:     com_jme3_audio_ios_IosAL
- * Method:    alSourceQueueBuffers
- * Signature: (IILjava/nio/IntBuffer;)V
- */
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosAL_alSourceQueueBuffers
-  (JNIEnv *, jobject, jint, jint, jobject);
-
-/*
- * Class:     com_jme3_audio_ios_IosAL
- * Method:    alListener
- * Signature: (ILjava/nio/FloatBuffer;)V
- */
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosAL_alListener
-  (JNIEnv *, jobject, jint, jobject);
-
-/*
- * Class:     com_jme3_audio_ios_IosAL
- * Method:    alListenerf
- * Signature: (IF)V
- */
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosAL_alListenerf
-  (JNIEnv *, jobject, jint, jfloat);
-
-/*
- * Class:     com_jme3_audio_ios_IosAL
- * Method:    alListener3f
- * Signature: (IFFF)V
- */
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosAL_alListener3f
-  (JNIEnv *, jobject, jint, jfloat, jfloat, jfloat);
-
-/*
- * Class:     com_jme3_audio_ios_IosAL
- * Method:    alSource3i
- * Signature: (IIIII)V
- */
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosAL_alSource3i
-  (JNIEnv *, jobject, jint, jint, jint, jint, jint);
-
-#ifdef __cplusplus
-}
-#endif
-#endif

+ 0 - 178
jme3-ios/ios-data/templates/src/com_jme3_audio_ios_IosALC.c

@@ -1,178 +0,0 @@
-//#include "util.h"
-#include "com_jme3_audio_ios_IosALC.h"
-//#include "AL/alc.h"
-//#include "AL/alext.h"
-
-#include "OpenAL/al.h"
-#include "OpenAL/alc.h"
-#include "OpenAL/oalMacOSX_OALExtensions.h"
-
-static jboolean created = JNI_FALSE;
-
-/* InitAL opens the default device and sets up a context using default
- * attributes, making the program ready to call OpenAL functions. */
-static int InitAL()
-{
-    ALCdevice *device = NULL;
-    ALCcontext *ctx = NULL;
-
-    /* Open and initialize a device with default settings */
-    device = alcOpenDevice(NULL);
-    
-    if(device == NULL)
-    {
-        fprintf(stderr, "Could not open a device!\n");
-        goto cleanup;
-    }
-
-    ctx = alcCreateContext(device, NULL);
-    
-    if (ctx == NULL)
-    {
-        fprintf(stderr, "Could not create context!\n");
-        goto cleanup;
-    }
-    
-    if (!alcMakeContextCurrent(ctx)) 
-    {
-        fprintf(stderr, "Could not make context current!\n");
-        goto cleanup;
-    }
-
-    return 0;
-    
-cleanup:
-    if (ctx != NULL) alcDestroyContext(ctx);
-    if (device != NULL) alcCloseDevice(device);
-    return 1;
-}
-
-/* CloseAL closes the device belonging to the current context, and destroys the
- * context. */
-static void CloseAL()
-{
-    ALCdevice *device;
-    ALCcontext *ctx;
-
-    ctx = alcGetCurrentContext();
-    
-    if (ctx == NULL) 
-    {
-        return;
-    }
-
-    device = alcGetContextsDevice(ctx);
-    
-    if (device == NULL) 
-    {
-        return;
-    }
-
-    if(!alcMakeContextCurrent(NULL)) {
-        return;
-    }
-
-    alcDestroyContext(ctx);
-    alcCloseDevice(device);
-}
-
-static ALCdevice* GetALCDevice()
-{
-    ALCdevice *device;
-    ALCcontext *ctx;
-
-    ctx = alcGetCurrentContext();
-    
-    if (ctx != NULL) 
-    {
-        device = alcGetContextsDevice(ctx);
-        
-        if (device != NULL)
-        {
-            return device;
-        }
-    }
-    
-    return NULL;
-}
-
-JNIEXPORT jboolean JNICALL Java_com_jme3_audio_ios_IosALC_isCreated
-  (JNIEnv* env, jobject obj)
-{
-    return created;
-}
-
-
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosALC_createALC
-  (JNIEnv* env, jobject obj)
-{
-    created = (InitAL() == 0);
-}
-
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosALC_destroyALC
-  (JNIEnv* env, jobject obj)
-{
-    CloseAL();
-    created = JNI_FALSE;
-}
-
-JNIEXPORT jstring JNICALL Java_com_jme3_audio_ios_IosALC_alcGetString
-  (JNIEnv* env, jobject obj, jint param)
-{
-    ALCdevice* device = GetALCDevice();
-    if (device == NULL) return NULL;
-    return (*env)->NewStringUTF(env, alcGetString(device, param));
-}
-
-JNIEXPORT jboolean JNICALL Java_com_jme3_audio_ios_IosALC_alcIsExtensionPresent
-  (JNIEnv* env, jobject obj, jstring extension)
-{
-    ALCdevice* device = GetALCDevice();
-    
-    if (device == NULL) return JNI_FALSE;
-    
-    const char* strExtension = (*env)->GetStringUTFChars(env, extension, NULL);
-    
-    if (strExtension == NULL)
-    {
-        return JNI_FALSE;
-    }
-    
-    jboolean result = alcIsExtensionPresent(device, strExtension);
-    
-    (*env)->ReleaseStringUTFChars(env, extension, strExtension);
-    
-    return result;
-}
-
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosALC_alcGetInteger
-  (JNIEnv* env, jobject obj, jint param, jobject buffer, jint bufferSize)
-{
-    ALCdevice* device = GetALCDevice();
-    
-    if (device == NULL) return;
-
-    ALCint* pBuffers = (ALCint*) (*env)->GetDirectBufferAddress(env, buffer);
-
-    alcGetIntegerv(device, (ALCenum)param, (ALCsizei)bufferSize, pBuffers);
-}
-
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosALC_alcDevicePauseSOFT
-  (JNIEnv* env, jobject obj)
-{
-    ALCdevice* device = GetALCDevice();
-    
-    if (device == NULL) return;
-    
-//    alcDevicePauseSOFT(device);
-}
-
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosALC_alcDeviceResumeSOFT
-  (JNIEnv* env, jobject obj)
-{
-    ALCdevice* device = GetALCDevice();
-    
-    if (device == NULL) return;
-    
-//    alcDeviceResumeSOFT(device);
-}

+ 0 - 77
jme3-ios/ios-data/templates/src/com_jme3_audio_ios_IosALC.h

@@ -1,77 +0,0 @@
-/* DO NOT EDIT THIS FILE - it is machine generated */
-#include <jni.h>
-/* Header for class com_jme3_audio_ios_IosALC */
-
-#ifndef _Included_com_jme3_audio_ios_IosALC
-#define _Included_com_jme3_audio_ios_IosALC
-#ifdef __cplusplus
-extern "C" {
-#endif
-/*
- * Class:     com_jme3_audio_ios_IosALC
- * Method:    createALC
- * Signature: ()V
- */
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosALC_createALC
-  (JNIEnv *, jobject);
-
-/*
- * Class:     com_jme3_audio_ios_IosALC
- * Method:    destroyALC
- * Signature: ()V
- */
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosALC_destroyALC
-  (JNIEnv *, jobject);
-
-/*
- * Class:     com_jme3_audio_ios_IosALC
- * Method:    isCreated
- * Signature: ()Z
- */
-JNIEXPORT jboolean JNICALL Java_com_jme3_audio_ios_IosALC_isCreated
-  (JNIEnv *, jobject);
-
-/*
- * Class:     com_jme3_audio_ios_IosALC
- * Method:    alcGetString
- * Signature: (I)Ljava/lang/String;
- */
-JNIEXPORT jstring JNICALL Java_com_jme3_audio_ios_IosALC_alcGetString
-  (JNIEnv *, jobject, jint);
-
-/*
- * Class:     com_jme3_audio_ios_IosALC
- * Method:    alcIsExtensionPresent
- * Signature: (Ljava/lang/String;)Z
- */
-JNIEXPORT jboolean JNICALL Java_com_jme3_audio_ios_IosALC_alcIsExtensionPresent
-  (JNIEnv *, jobject, jstring);
-
-/*
- * Class:     com_jme3_audio_ios_IosALC
- * Method:    alcGetInteger
- * Signature: (ILjava/nio/IntBuffer;I)V
- */
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosALC_alcGetInteger
-  (JNIEnv *, jobject, jint, jobject, jint);
-
-/*
- * Class:     com_jme3_audio_ios_IosALC
- * Method:    alcDevicePauseSOFT
- * Signature: ()V
- */
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosALC_alcDevicePauseSOFT
-  (JNIEnv *, jobject);
-
-/*
- * Class:     com_jme3_audio_ios_IosALC
- * Method:    alcDeviceResumeSOFT
- * Signature: ()V
- */
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosALC_alcDeviceResumeSOFT
-  (JNIEnv *, jobject);
-
-#ifdef __cplusplus
-}
-#endif
-#endif

+ 0 - 79
jme3-ios/ios-data/templates/src/com_jme3_audio_ios_IosEFX.c

@@ -1,79 +0,0 @@
-//#include "util.h"
-#include "com_jme3_audio_ios_IosEFX.h"
-//#include "AL/alext.h"
-
-#include "OpenAL/al.h"
-#include "OpenAL/alc.h"
-#include "OpenAL/oalMacOSX_OALExtensions.h"
-
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosEFX_alGenAuxiliaryEffectSlots
-  (JNIEnv* env, jobject obj, jint numSlots, jobject buffer)
-{
-    ALuint* pBuffers = (ALuint*) (*env)->GetDirectBufferAddress(env, buffer);
-//    alGenAuxiliaryEffectSlots((ALsizei)numSlots, pBuffers);
-}
-
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosEFX_alGenEffects
-  (JNIEnv* env, jobject obj, jint numEffects, jobject buffer)
-{
-    ALuint* pBuffers = (ALuint*) (*env)->GetDirectBufferAddress(env, buffer);
-//    alGenEffects((ALsizei)numEffects, pBuffers);
-}
-
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosEFX_alEffecti
-  (JNIEnv* env, jobject obj, jint effect, jint param, jint value)
-{
-//    alEffecti((ALuint)effect, (ALenum)param, (ALint)value);
-}
-
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosEFX_alAuxiliaryEffectSloti
-  (JNIEnv* env, jobject obj, jint effectSlot, jint param, jint value)
-{
-//    alAuxiliaryEffectSloti((ALuint)effectSlot, (ALenum)param, (ALint)value);
-}
-
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosEFX_alDeleteEffects
-  (JNIEnv* env, jobject obj, jint numEffects, jobject buffer)
-{
-    ALuint* pBuffers = (ALuint*) (*env)->GetDirectBufferAddress(env, buffer);
-//    alDeleteEffects((ALsizei)numEffects, pBuffers);
-}
-
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosEFX_alDeleteAuxiliaryEffectSlots
-  (JNIEnv* env, jobject obj, jint numEffectSlots, jobject buffer)
-{
-    ALuint* pBuffers = (ALuint*) (*env)->GetDirectBufferAddress(env, buffer);
-//    alDeleteAuxiliaryEffectSlots((ALsizei)numEffectSlots, pBuffers);
-}
-
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosEFX_alGenFilters
-  (JNIEnv* env, jobject obj, jint numFilters, jobject buffer)
-{
-    ALuint* pBuffers = (ALuint*) (*env)->GetDirectBufferAddress(env, buffer);
-//    alGenFilters((ALsizei)numFilters, pBuffers);
-}
-
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosEFX_alFilteri
-  (JNIEnv* env, jobject obj, jint filter, jint param, jint value)
-{
-//    alFilteri((ALuint)filter, (ALenum)param, (ALint)value);
-}
-
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosEFX_alFilterf
-  (JNIEnv* env, jobject obj, jint filter, jint param, jfloat value)
-{
-//    alFilterf((ALuint)filter, (ALenum)param, (ALfloat)value);
-}
-
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosEFX_alDeleteFilters
-  (JNIEnv* env, jobject obj, jint numFilters, jobject buffer)
-{
-    ALuint* pBuffers = (ALuint*) (*env)->GetDirectBufferAddress(env, buffer);
-//    alDeleteFilters((ALsizei)numFilters, pBuffers);
-}
-
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosEFX_alEffectf
-  (JNIEnv* env, jobject obj, jint effect, jint param, jfloat value)
-{
-//    alEffectf((ALuint)effect, (ALenum)param, (ALfloat)value);
-}

+ 0 - 101
jme3-ios/ios-data/templates/src/com_jme3_audio_ios_IosEFX.h

@@ -1,101 +0,0 @@
-/* DO NOT EDIT THIS FILE - it is machine generated */
-#include <jni.h>
-/* Header for class com_jme3_audio_ios_IosEFX */
-
-#ifndef _Included_com_jme3_audio_ios_IosEFX
-#define _Included_com_jme3_audio_ios_IosEFX
-#ifdef __cplusplus
-extern "C" {
-#endif
-/*
- * Class:     com_jme3_audio_ios_IosEFX
- * Method:    alGenAuxiliaryEffectSlots
- * Signature: (ILjava/nio/IntBuffer;)V
- */
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosEFX_alGenAuxiliaryEffectSlots
-  (JNIEnv *, jobject, jint, jobject);
-
-/*
- * Class:     com_jme3_audio_ios_IosEFX
- * Method:    alGenEffects
- * Signature: (ILjava/nio/IntBuffer;)V
- */
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosEFX_alGenEffects
-  (JNIEnv *, jobject, jint, jobject);
-
-/*
- * Class:     com_jme3_audio_ios_IosEFX
- * Method:    alEffecti
- * Signature: (III)V
- */
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosEFX_alEffecti
-  (JNIEnv *, jobject, jint, jint, jint);
-
-/*
- * Class:     com_jme3_audio_ios_IosEFX
- * Method:    alAuxiliaryEffectSloti
- * Signature: (III)V
- */
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosEFX_alAuxiliaryEffectSloti
-  (JNIEnv *, jobject, jint, jint, jint);
-
-/*
- * Class:     com_jme3_audio_ios_IosEFX
- * Method:    alDeleteEffects
- * Signature: (ILjava/nio/IntBuffer;)V
- */
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosEFX_alDeleteEffects
-  (JNIEnv *, jobject, jint, jobject);
-
-/*
- * Class:     com_jme3_audio_ios_IosEFX
- * Method:    alDeleteAuxiliaryEffectSlots
- * Signature: (ILjava/nio/IntBuffer;)V
- */
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosEFX_alDeleteAuxiliaryEffectSlots
-  (JNIEnv *, jobject, jint, jobject);
-
-/*
- * Class:     com_jme3_audio_ios_IosEFX
- * Method:    alGenFilters
- * Signature: (ILjava/nio/IntBuffer;)V
- */
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosEFX_alGenFilters
-  (JNIEnv *, jobject, jint, jobject);
-
-/*
- * Class:     com_jme3_audio_ios_IosEFX
- * Method:    alFilteri
- * Signature: (III)V
- */
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosEFX_alFilteri
-  (JNIEnv *, jobject, jint, jint, jint);
-
-/*
- * Class:     com_jme3_audio_ios_IosEFX
- * Method:    alFilterf
- * Signature: (IIF)V
- */
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosEFX_alFilterf
-  (JNIEnv *, jobject, jint, jint, jfloat);
-
-/*
- * Class:     com_jme3_audio_ios_IosEFX
- * Method:    alDeleteFilters
- * Signature: (ILjava/nio/IntBuffer;)V
- */
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosEFX_alDeleteFilters
-  (JNIEnv *, jobject, jint, jobject);
-
-/*
- * Class:     com_jme3_audio_ios_IosEFX
- * Method:    alEffectf
- * Signature: (IIF)V
- */
-JNIEXPORT void JNICALL Java_com_jme3_audio_ios_IosEFX_alEffectf
-  (JNIEnv *, jobject, jint, jint, jfloat);
-
-#ifdef __cplusplus
-}
-#endif
-#endif

+ 0 - 192
jme3-ios/ios-data/templates/src/jme-ios.m

@@ -1,192 +0,0 @@
-/*
- * Copyright (c) 2009-2013 jMonkeyEngine
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- *
- * * Redistributions of source code must retain the above copyright
- *   notice, this list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above copyright
- *   notice, this list of conditions and the following disclaimer in the
- *   documentation and/or other materials provided with the distribution.
- *
- * * Neither the name of 'jMonkeyEngine' nor the names of its contributors
- *   may be used to endorse or promote products derived from this software
- *   without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
- * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-#include <jni.h>
-#import <UIKit/UIKit.h>
-
-/**
- * Author: Normen Hansen
- */
-
-#ifndef JNIEXPORT
-#define JNIEXPORT __attribute__ ((visibility("default"))) \
-  __attribute__ ((used))
-#endif
-
-BOOL checkJNIException(JNIEnv *e){
-    if ((*e)->ExceptionCheck(e)) {
-        (*e)->ExceptionDescribe(e);
-        (*e)->ExceptionClear(e);
-        return YES;
-    }
-    return NO;
-}
-
-#ifndef _Included_com_jme3_system_ios_IosImageLoader
-#define _Included_com_jme3_system_ios_IosImageLoader
-#endif
-
-
-static void flipImage(int scanline, int height, char* data)
-{
-    char tmp[scanline];
-    
-    for (int y = 0; y < height / 2; y++)
-    {
-        int oppY = height - y - 1;
-        int yOff  = y * scanline;
-        int oyOff = oppY * scanline;
-        // Copy scanline at Y to tmp
-        memcpy(tmp, &data[yOff], scanline);
-        // Copy data at opposite Y to Y
-        memcpy(&data[yOff], &data[oyOff], scanline);
-        // Copy tmp to opposite Y
-        memcpy(&data[oyOff], tmp, scanline);
-    }
-}
-
-JNIEXPORT jobject JNICALL
-Java_com_jme3_system_ios_IosImageLoader_loadImageData(JNIEnv* e, jclass obj, jobject imageFormat, jboolean flipY, jobject inputStream){
-    // prepare java classes and method pointers
-    jclass imageClass = (*e)->FindClass(e, "com/jme3/texture/Image");
-    jclass imageFormatClass = (*e)->FindClass(e, "com/jme3/texture/Image$Format");
-    jclass inputStreamClass = (*e)->FindClass(e, "java/io/InputStream");
-    jclass bufferUtilsClass = (*e)->FindClass(e, "com/jme3/util/BufferUtils");
-    jclass colorSpaceClass = (*e)->FindClass(e, "com/jme3/texture/image/ColorSpace");
-    
-    jmethodID imageConstructor = (*e)->GetMethodID(e, imageClass, "<init>", "(Lcom/jme3/texture/Image$Format;IILjava/nio/ByteBuffer;Lcom/jme3/texture/image/ColorSpace;)V");
-    jmethodID readMethod = (*e)->GetMethodID(e, inputStreamClass, "read", "([B)I");
-    jmethodID newBufferMethod = (*e)->GetStaticMethodID(e, bufferUtilsClass, "createByteBuffer", "(I)Ljava/nio/ByteBuffer;");
-    jmethodID bitsPerPixel = (*e)->GetMethodID(e, imageFormatClass, "getBitsPerPixel", "()I");
-    jfieldID sRGBFieldID = (*e)->GetStaticFieldID(e, colorSpaceClass, "sRGB", "Lcom/jme3/texture/image/ColorSpace;");
-    jobject sRGBVal = (*e)->GetStaticObjectField(e, colorSpaceClass, sRGBFieldID);
-    
-    if (checkJNIException(e)) {
-        return nil;
-    }
-
-    int bpp = (*e)->CallIntMethod(e, imageFormat, bitsPerPixel);
-    int comps = 4; // Components (Bytes) per Pixel
-    
-    if ((bpp % 8) == 0)
-    {
-        comps = bpp / 8;
-    } else {
-        jclass assetExClazz = (*e)->FindClass(e, "com/jme3/asset/AssetLoadException");
-        (*e)->ThrowNew(e, assetExClazz, "Unsupported ImageFormat: Bits per Pixel is no multiple of 8");
-    }
-    
-    // read data from inputstream via byteArray to NSMutableData
-    jbyteArray tempArray = (*e)->NewByteArray (e, 1000);
-    if (checkJNIException(e)) {
-        return nil;
-    }
-    
-    NSMutableData *inData = [[NSMutableData alloc] init];
-    jint size = (*e)->CallIntMethod(e, inputStream, readMethod, tempArray);
-    if (checkJNIException(e)) {
-        [inData release];
-        return nil;
-    }
-    while (size != -1) {
-        jbyte *data;
-        data = (*e)->GetByteArrayElements(e, tempArray, false);
-        [inData appendBytes:data length:size];
-        (*e)->ReleaseByteArrayElements(e, tempArray, data, JNI_ABORT);
-        size = (*e)->CallIntMethod(e, inputStream, readMethod, tempArray);
-        if (checkJNIException(e)) {
-            [inData release];
-            return nil;
-        }
-    }
-    (*e)->DeleteLocalRef(e, tempArray);
-    if (checkJNIException(e)) {
-        [inData release];
-        return nil;
-    }
-    
-    // decode image data
-    NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
-    UIImage* inputImage = [UIImage imageWithData:inData];
-    if(inputImage == nil){
-        [inData release];
-        [pool release];
-        return nil;
-    }
-    CGImageRef inImage = [inputImage CGImage];
-    int wdth = CGImageGetWidth(inImage);
-    int ht = CGImageGetHeight(inImage);
-    
-    // NewDirectByteBuffer seems to fail? -> Creating ByteBuffer in java
-    jobject nativeBuffer = (*e)->CallStaticObjectMethod(e, bufferUtilsClass, newBufferMethod, ht*wdth*comps);
-    if (checkJNIException(e)) {
-        [inData release];
-        [pool release];
-        return nil;
-    }
-    void *rawData = (*e)->GetDirectBufferAddress(e, nativeBuffer);
-    NSUInteger bytesPerRowImg = CGImageGetBytesPerRow(inImage);
-    NSUInteger bitsPerComponentImg = CGImageGetBitsPerComponent(inImage);
-    CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
-    CGContextRef context = CGBitmapContextCreate(rawData,wdth,ht,bitsPerComponentImg,bytesPerRowImg,colorSpace,kCGImageAlphaPremultipliedLast| kCGBitmapByteOrder32Big);
-    CGColorSpaceRelease(colorSpace);
-    CGContextDrawImage(context,CGRectMake(0,0,wdth,ht), inImage);
-    CGContextRelease(context);
-    [inData release];
-    [pool release];
-    
-    if (flipY) {
-        flipImage(wdth * comps, ht, rawData);
-    }
-    
-    //create image
-    jobject imageObject = (*e)->NewObject(e, imageClass, imageConstructor, imageFormat, wdth, ht, nativeBuffer, sRGBVal);
-    return imageObject;
-}
-
-#ifndef _Included_com_jme3_system_ios_JmeIosSystem
-#define _Included_com_jme3_system_ios_JmeIosSystem
-#endif
-
-JNIEXPORT void JNICALL
-Java_com_jme3_system_ios_JmeIosSystem_showDialog(JNIEnv* e, jobject c, jstring text) {
-    const char* chars = (*e)->GetStringUTFChars(e, text, 0);
-    NSString* string = [[NSString alloc] initWithUTF8String : chars];
-    (*e)->ReleaseStringUTFChars(e, text, chars);
-    UIAlertView *alert = [[UIAlertView alloc] initWithTitle : @"Error"
-                                                    message : string
-                                                   delegate : nil
-                                          cancelButtonTitle : @"OK"
-                                          otherButtonTitles : nil];
-    [alert show];
-    [alert release];
-    [string release];
-}

+ 0 - 402
jme3-ios/licenses.txt

@@ -1,402 +0,0 @@
-*********************
-*LICENSE FOR OPENJDK*
-*********************
-The GNU General Public License (GPL)
-
-Version 2, June 1991
-
-Copyright (C) 1989, 1991 Free Software Foundation, Inc.
-59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
-Everyone is permitted to copy and distribute verbatim copies of this license
-document, but changing it is not allowed.
-
-Preamble
-
-The licenses for most software are designed to take away your freedom to share
-and change it.  By contrast, the GNU General Public License is intended to
-guarantee your freedom to share and change free software--to make sure the
-software is free for all its users.  This General Public License applies to
-most of the Free Software Foundation's software and to any other program whose
-authors commit to using it.  (Some other Free Software Foundation software is
-covered by the GNU Library General Public License instead.) You can apply it to
-your programs, too.
-
-When we speak of free software, we are referring to freedom, not price.  Our
-General Public Licenses are designed to make sure that you have the freedom to
-distribute copies of free software (and charge for this service if you wish),
-that you receive source code or can get it if you want it, that you can change
-the software or use pieces of it in new free programs; and that you know you
-can do these things.
-
-To protect your rights, we need to make restrictions that forbid anyone to deny
-you these rights or to ask you to surrender the rights.  These restrictions
-translate to certain responsibilities for you if you distribute copies of the
-software, or if you modify it.
-
-For example, if you distribute copies of such a program, whether gratis or for
-a fee, you must give the recipients all the rights that you have.  You must
-make sure that they, too, receive or can get the source code.  And you must
-show them these terms so they know their rights.
-
-We protect your rights with two steps: (1) copyright the software, and (2)
-offer you this license which gives you legal permission to copy, distribute
-and/or modify the software.
-
-Also, for each author's protection and ours, we want to make certain that
-everyone understands that there is no warranty for this free software.  If the
-software is modified by someone else and passed on, we want its recipients to
-know that what they have is not the original, so that any problems introduced
-by others will not reflect on the original authors' reputations.
-
-Finally, any free program is threatened constantly by software patents.  We
-wish to avoid the danger that redistributors of a free program will
-individually obtain patent licenses, in effect making the program proprietary.
-To prevent this, we have made it clear that any patent must be licensed for
-everyone's free use or not licensed at all.
-
-The precise terms and conditions for copying, distribution and modification
-follow.
-
-TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
-0. This License applies to any program or other work which contains a notice
-placed by the copyright holder saying it may be distributed under the terms of
-this General Public License.  The "Program", below, refers to any such program
-or work, and a "work based on the Program" means either the Program or any
-derivative work under copyright law: that is to say, a work containing the
-Program or a portion of it, either verbatim or with modifications and/or
-translated into another language.  (Hereinafter, translation is included
-without limitation in the term "modification".) Each licensee is addressed as
-"you".
-
-Activities other than copying, distribution and modification are not covered by
-this License; they are outside its scope.  The act of running the Program is
-not restricted, and the output from the Program is covered only if its contents
-constitute a work based on the Program (independent of having been made by
-running the Program).  Whether that is true depends on what the Program does.
-
-1. You may copy and distribute verbatim copies of the Program's source code as
-you receive it, in any medium, provided that you conspicuously and
-appropriately publish on each copy an appropriate copyright notice and
-disclaimer of warranty; keep intact all the notices that refer to this License
-and to the absence of any warranty; and give any other recipients of the
-Program a copy of this License along with the Program.
-
-You may charge a fee for the physical act of transferring a copy, and you may
-at your option offer warranty protection in exchange for a fee.
-
-2. You may modify your copy or copies of the Program or any portion of it, thus
-forming a work based on the Program, and copy and distribute such modifications
-or work under the terms of Section 1 above, provided that you also meet all of
-these conditions:
-
-    a) You must cause the modified files to carry prominent notices stating
-    that you changed the files and the date of any change.
-
-    b) You must cause any work that you distribute or publish, that in whole or
-    in part contains or is derived from the Program or any part thereof, to be
-    licensed as a whole at no charge to all third parties under the terms of
-    this License.
-
-    c) If the modified program normally reads commands interactively when run,
-    you must cause it, when started running for such interactive use in the
-    most ordinary way, to print or display an announcement including an
-    appropriate copyright notice and a notice that there is no warranty (or
-    else, saying that you provide a warranty) and that users may redistribute
-    the program under these conditions, and telling the user how to view a copy
-    of this License.  (Exception: if the Program itself is interactive but does
-    not normally print such an announcement, your work based on the Program is
-    not required to print an announcement.)
-
-These requirements apply to the modified work as a whole.  If identifiable
-sections of that work are not derived from the Program, and can be reasonably
-considered independent and separate works in themselves, then this License, and
-its terms, do not apply to those sections when you distribute them as separate
-works.  But when you distribute the same sections as part of a whole which is a
-work based on the Program, the distribution of the whole must be on the terms
-of this License, whose permissions for other licensees extend to the entire
-whole, and thus to each and every part regardless of who wrote it.
-
-Thus, it is not the intent of this section to claim rights or contest your
-rights to work written entirely by you; rather, the intent is to exercise the
-right to control the distribution of derivative or collective works based on
-the Program.
-
-In addition, mere aggregation of another work not based on the Program with the
-Program (or with a work based on the Program) on a volume of a storage or
-distribution medium does not bring the other work under the scope of this
-License.
-
-3. You may copy and distribute the Program (or a work based on it, under
-Section 2) in object code or executable form under the terms of Sections 1 and
-2 above provided that you also do one of the following:
-
-    a) Accompany it with the complete corresponding machine-readable source
-    code, which must be distributed under the terms of Sections 1 and 2 above
-    on a medium customarily used for software interchange; or,
-
-    b) Accompany it with a written offer, valid for at least three years, to
-    give any third party, for a charge no more than your cost of physically
-    performing source distribution, a complete machine-readable copy of the
-    corresponding source code, to be distributed under the terms of Sections 1
-    and 2 above on a medium customarily used for software interchange; or,
-
-    c) Accompany it with the information you received as to the offer to
-    distribute corresponding source code.  (This alternative is allowed only
-    for noncommercial distribution and only if you received the program in
-    object code or executable form with such an offer, in accord with
-    Subsection b above.)
-
-The source code for a work means the preferred form of the work for making
-modifications to it.  For an executable work, complete source code means all
-the source code for all modules it contains, plus any associated interface
-definition files, plus the scripts used to control compilation and installation
-of the executable.  However, as a special exception, the source code
-distributed need not include anything that is normally distributed (in either
-source or binary form) with the major components (compiler, kernel, and so on)
-of the operating system on which the executable runs, unless that component
-itself accompanies the executable.
-
-If distribution of executable or object code is made by offering access to copy
-from a designated place, then offering equivalent access to copy the source
-code from the same place counts as distribution of the source code, even though
-third parties are not compelled to copy the source along with the object code.
-
-4. You may not copy, modify, sublicense, or distribute the Program except as
-expressly provided under this License.  Any attempt otherwise to copy, modify,
-sublicense or distribute the Program is void, and will automatically terminate
-your rights under this License.  However, parties who have received copies, or
-rights, from you under this License will not have their licenses terminated so
-long as such parties remain in full compliance.
-
-5. You are not required to accept this License, since you have not signed it.
-However, nothing else grants you permission to modify or distribute the Program
-or its derivative works.  These actions are prohibited by law if you do not
-accept this License.  Therefore, by modifying or distributing the Program (or
-any work based on the Program), you indicate your acceptance of this License to
-do so, and all its terms and conditions for copying, distributing or modifying
-the Program or works based on it.
-
-6. Each time you redistribute the Program (or any work based on the Program),
-the recipient automatically receives a license from the original licensor to
-copy, distribute or modify the Program subject to these terms and conditions.
-You may not impose any further restrictions on the recipients' exercise of the
-rights granted herein.  You are not responsible for enforcing compliance by
-third parties to this License.
-
-7. If, as a consequence of a court judgment or allegation of patent
-infringement or for any other reason (not limited to patent issues), conditions
-are imposed on you (whether by court order, agreement or otherwise) that
-contradict the conditions of this License, they do not excuse you from the
-conditions of this License.  If you cannot distribute so as to satisfy
-simultaneously your obligations under this License and any other pertinent
-obligations, then as a consequence you may not distribute the Program at all.
-For example, if a patent license would not permit royalty-free redistribution
-of the Program by all those who receive copies directly or indirectly through
-you, then the only way you could satisfy both it and this License would be to
-refrain entirely from distribution of the Program.
-
-If any portion of this section is held invalid or unenforceable under any
-particular circumstance, the balance of the section is intended to apply and
-the section as a whole is intended to apply in other circumstances.
-
-It is not the purpose of this section to induce you to infringe any patents or
-other property right claims or to contest validity of any such claims; this
-section has the sole purpose of protecting the integrity of the free software
-distribution system, which is implemented by public license practices.  Many
-people have made generous contributions to the wide range of software
-distributed through that system in reliance on consistent application of that
-system; it is up to the author/donor to decide if he or she is willing to
-distribute software through any other system and a licensee cannot impose that
-choice.
-
-This section is intended to make thoroughly clear what is believed to be a
-consequence of the rest of this License.
-
-8. If the distribution and/or use of the Program is restricted in certain
-countries either by patents or by copyrighted interfaces, the original
-copyright holder who places the Program under this License may add an explicit
-geographical distribution limitation excluding those countries, so that
-distribution is permitted only in or among countries not thus excluded.  In
-such case, this License incorporates the limitation as if written in the body
-of this License.
-
-9. The Free Software Foundation may publish revised and/or new versions of the
-General Public License from time to time.  Such new versions will be similar in
-spirit to the present version, but may differ in detail to address new problems
-or concerns.
-
-Each version is given a distinguishing version number.  If the Program
-specifies a version number of this License which applies to it and "any later
-version", you have the option of following the terms and conditions either of
-that version or of any later version published by the Free Software Foundation.
-If the Program does not specify a version number of this License, you may
-choose any version ever published by the Free Software Foundation.
-
-10. If you wish to incorporate parts of the Program into other free programs
-whose distribution conditions are different, write to the author to ask for
-permission.  For software which is copyrighted by the Free Software Foundation,
-write to the Free Software Foundation; we sometimes make exceptions for this.
-Our decision will be guided by the two goals of preserving the free status of
-all derivatives of our free software and of promoting the sharing and reuse of
-software generally.
-
-NO WARRANTY
-
-11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR
-THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN OTHERWISE
-STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE
-PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED,
-INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND
-PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE,
-YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
-
-12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL
-ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE
-PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
-GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR
-INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA
-BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
-FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER
-OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-END OF TERMS AND CONDITIONS
-
-How to Apply These Terms to Your New Programs
-
-If you develop a new program, and you want it to be of the greatest possible
-use to the public, the best way to achieve this is to make it free software
-which everyone can redistribute and change under these terms.
-
-To do so, attach the following notices to the program.  It is safest to attach
-them to the start of each source file to most effectively convey the exclusion
-of warranty; and each file should have at least the "copyright" line and a
-pointer to where the full notice is found.
-
-    One line to give the program's name and a brief idea of what it does.
-
-    Copyright (C) <year> <name of author>
-
-    This program is free software; you can redistribute it and/or modify it
-    under the terms of the GNU General Public License as published by the Free
-    Software Foundation; either version 2 of the License, or (at your option)
-    any later version.
-
-    This program is distributed in the hope that it will be useful, but WITHOUT
-    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
-    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
-    more details.
-
-    You should have received a copy of the GNU General Public License along
-    with this program; if not, write to the Free Software Foundation, Inc., 59
-    Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
-Also add information on how to contact you by electronic and paper mail.
-
-If the program is interactive, make it output a short notice like this when it
-starts in an interactive mode:
-
-    Gnomovision version 69, Copyright (C) year name of author Gnomovision comes
-    with ABSOLUTELY NO WARRANTY; for details type 'show w'.  This is free
-    software, and you are welcome to redistribute it under certain conditions;
-    type 'show c' for details.
-
-The hypothetical commands 'show w' and 'show c' should show the appropriate
-parts of the General Public License.  Of course, the commands you use may be
-called something other than 'show w' and 'show c'; they could even be
-mouse-clicks or menu items--whatever suits your program.
-
-You should also get your employer (if you work as a programmer) or your school,
-if any, to sign a "copyright disclaimer" for the program, if necessary.  Here
-is a sample; alter the names:
-
-    Yoyodyne, Inc., hereby disclaims all copyright interest in the program
-    'Gnomovision' (which makes passes at compilers) written by James Hacker.
-
-    signature of Ty Coon, 1 April 1989
-
-    Ty Coon, President of Vice
-
-This General Public License does not permit incorporating your program into
-proprietary programs.  If your program is a subroutine library, you may
-consider it more useful to permit linking proprietary applications with the
-library.  If this is what you want to do, use the GNU Library General Public
-License instead of this License.
-
-
-"CLASSPATH" EXCEPTION TO THE GPL
-
-Certain source files distributed by Oracle America and/or its affiliates are
-subject to the following clarification and special exception to the GPL, but
-only where Oracle has expressly included in the particular source file's header
-the words "Oracle designates this particular file as subject to the "Classpath"
-exception as provided by Oracle in the LICENSE file that accompanied this code."
-
-    Linking this library statically or dynamically with other modules is making
-    a combined work based on this library.  Thus, the terms and conditions of
-    the GNU General Public License cover the whole combination.
-
-    As a special exception, the copyright holders of this library give you
-    permission to link this library with independent modules to produce an
-    executable, regardless of the license terms of these independent modules,
-    and to copy and distribute the resulting executable under terms of your
-    choice, provided that you also meet, for each linked independent module,
-    the terms and conditions of the license of that module.  An independent
-    module is a module which is not derived from or based on this library.  If
-    you modify this library, you may extend this exception to your version of
-    the library, but you are not obligated to do so.  If you do not wish to do
-    so, delete this exception statement from your version.
-
-
-*******************
-*LICENSE FOR AVIAN*
-*******************
-Copyright (c) 2008-2012, Avian Contributors
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHORS DISCLAIM ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
-OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-
-
-*************
-*JME LICENSE*
-*************
-Copyright (c) 2003-2012 jMonkeyEngine
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
-
-* Redistributions of source code must retain the above copyright
-  notice, this list of conditions and the following disclaimer.
-
-* Redistributions in binary form must reproduce the above copyright
-  notice, this list of conditions and the following disclaimer in the
-  documentation and/or other materials provided with the distribution.
-
-* Neither the name of 'jMonkeyEngine' nor the names of its contributors
-  may be used to endorse or promote products derived from this software
-  without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
-CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

+ 0 - 6
jme3-ios/manifest.mf

@@ -1,6 +0,0 @@
-Manifest-Version: 1.0
-OpenIDE-Module: com.jme3.gde.ios
-OpenIDE-Module-Implementation-Version: 0
-OpenIDE-Module-Layer: com/jme3/gde/ios/layer.xml
-OpenIDE-Module-Localizing-Bundle: com/jme3/gde/ios/Bundle.properties
-

+ 0 - 45
jme3-ios/nbproject/build-impl.xml

@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-*** GENERATED FROM project.xml - DO NOT EDIT  ***
-***         EDIT ../build.xml INSTEAD         ***
--->
-<project name="com.jme3.gde.ios-impl" basedir="..">
-    <fail message="Please build using Ant 1.7.1 or higher.">
-        <condition>
-            <not>
-                <antversion atleast="1.7.1"/>
-            </not>
-        </condition>
-    </fail>
-    <property file="nbproject/private/suite-private.properties"/>
-    <property file="nbproject/suite.properties"/>
-    <fail unless="suite.dir">You must set 'suite.dir' to point to your containing module suite</fail>
-    <property file="${suite.dir}/nbproject/private/platform-private.properties"/>
-    <property file="${suite.dir}/nbproject/platform.properties"/>
-    <macrodef name="property" uri="http://www.netbeans.org/ns/nb-module-project/2">
-        <attribute name="name"/>
-        <attribute name="value"/>
-        <sequential>
-            <property name="@{name}" value="${@{value}}"/>
-        </sequential>
-    </macrodef>
-    <macrodef name="evalprops" uri="http://www.netbeans.org/ns/nb-module-project/2">
-        <attribute name="property"/>
-        <attribute name="value"/>
-        <sequential>
-            <property name="@{property}" value="@{value}"/>
-        </sequential>
-    </macrodef>
-    <property file="${user.properties.file}"/>
-    <nbmproject2:property name="harness.dir" value="nbplatform.${nbplatform.active}.harness.dir" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
-    <nbmproject2:property name="nbplatform.active.dir" value="nbplatform.${nbplatform.active}.netbeans.dest.dir" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
-    <nbmproject2:evalprops property="cluster.path.evaluated" value="${cluster.path}" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
-    <fail message="Path to 'platform' cluster missing in $${cluster.path} property or using corrupt Netbeans Platform (missing harness).">
-        <condition>
-            <not>
-                <contains string="${cluster.path.evaluated}" substring="platform"/>
-            </not>
-        </condition>
-    </fail>
-    <import file="${harness.dir}/build.xml"/>
-</project>

+ 0 - 8
jme3-ios/nbproject/genfiles.properties

@@ -1,8 +0,0 @@
-build.xml.data.CRC32=8d2930b7
-build.xml.script.CRC32=4596b2c2
[email protected]
-# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
-# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
-nbproject/build-impl.xml.data.CRC32=6a247622
-nbproject/build-impl.xml.script.CRC32=b4f92cf6
-nbproject/[email protected]

+ 0 - 11
jme3-ios/nbproject/project.properties

@@ -1,11 +0,0 @@
-javac.source=10
-javac.compilerargs=-Xlint -Xlint:-serial
-# avian compile locations (Now in downloads/)
-#avian.jdk.path=/Users/normenhansen/Documents/Code-Import/avian-ios/openjdk-1.7.0-u40-unofficial-macosx-x86_64-image
-#avian.jdk.src.path=/Users/normenhansen/Documents/Code-Import/avian-ios/openjdk7u40/jdk/src/
-#avian.src.path=/Users/normenhansen/Documents/Code-Import/avian-ios/avian/
-#hello-ios.src.path=/Users/normenhansen/Documents/Code-Import/avian-ios/hello-ios/
-license.file=licenses.txt
-nbm.homepage=http://www.jmonkeyengine.org/
-nbm.module.author=Normen Hansen
-spec.version.base=3.3.0

+ 0 - 121
jme3-ios/nbproject/project.xml

@@ -1,121 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://www.netbeans.org/ns/project/1">
-    <type>org.netbeans.modules.apisupport.project</type>
-    <configuration>
-        <data xmlns="http://www.netbeans.org/ns/nb-module-project/3">
-            <code-name-base>com.jme3.gde.ios</code-name-base>
-            <suite-component/>
-            <module-dependencies>
-                <dependency>
-                    <code-name-base>com.jme3.gde.core</code-name-base>
-                    <build-prerequisite/>
-                    <compile-dependency/>
-                    <run-dependency>
-                        <release-version>1</release-version>
-                        <specification-version>3.3.0</specification-version>
-                    </run-dependency>
-                </dependency>
-                <dependency>
-                    <code-name-base>org.netbeans.api.templates</code-name-base>
-                    <build-prerequisite/>
-                    <compile-dependency/>
-                    <run-dependency>
-                        <specification-version>1.6.1</specification-version>
-                    </run-dependency>
-                </dependency>
-                <dependency>
-                    <code-name-base>org.netbeans.modules.projectapi</code-name-base>
-                    <build-prerequisite/>
-                    <compile-dependency/>
-                    <run-dependency>
-                        <release-version>1</release-version>
-                        <specification-version>1.46.1</specification-version>
-                    </run-dependency>
-                </dependency>
-                <dependency>
-                    <code-name-base>org.netbeans.modules.projectuiapi</code-name-base>
-                    <build-prerequisite/>
-                    <compile-dependency/>
-                    <run-dependency>
-                        <release-version>1</release-version>
-                        <specification-version>1.57.1.8</specification-version>
-                    </run-dependency>
-                </dependency>
-                <dependency>
-                    <code-name-base>org.netbeans.modules.projectuiapi.base</code-name-base>
-                    <build-prerequisite/>
-                    <compile-dependency/>
-                    <run-dependency>
-                        <release-version>1</release-version>
-                        <specification-version>1.83.1.9</specification-version>
-                    </run-dependency>
-                </dependency>
-                <dependency>
-                    <code-name-base>org.openide.dialogs</code-name-base>
-                    <build-prerequisite/>
-                    <compile-dependency/>
-                    <run-dependency>
-                        <specification-version>7.25.1</specification-version>
-                    </run-dependency>
-                </dependency>
-                <dependency>
-                    <code-name-base>org.openide.filesystems</code-name-base>
-                    <build-prerequisite/>
-                    <compile-dependency/>
-                    <run-dependency>
-                        <specification-version>9.8.1</specification-version>
-                    </run-dependency>
-                </dependency>
-                <dependency>
-                    <code-name-base>org.openide.filesystems.nb</code-name-base>
-                    <build-prerequisite/>
-                    <compile-dependency/>
-                    <run-dependency>
-                        <specification-version>9.7.1</specification-version>
-                    </run-dependency>
-                </dependency>
-                <dependency>
-                    <code-name-base>org.openide.loaders</code-name-base>
-                    <build-prerequisite/>
-                    <compile-dependency/>
-                    <run-dependency>
-                        <specification-version>7.37.1</specification-version>
-                    </run-dependency>
-                </dependency>
-                <dependency>
-                    <code-name-base>org.openide.nodes</code-name-base>
-                    <build-prerequisite/>
-                    <compile-dependency/>
-                    <run-dependency>
-                        <specification-version>7.28.1</specification-version>
-                    </run-dependency>
-                </dependency>
-                <dependency>
-                    <code-name-base>org.openide.util</code-name-base>
-                    <build-prerequisite/>
-                    <compile-dependency/>
-                    <run-dependency>
-                        <specification-version>8.25.1</specification-version>
-                    </run-dependency>
-                </dependency>
-                <dependency>
-                    <code-name-base>org.openide.util.lookup</code-name-base>
-                    <build-prerequisite/>
-                    <compile-dependency/>
-                    <run-dependency>
-                        <specification-version>8.15.1</specification-version>
-                    </run-dependency>
-                </dependency>
-                <dependency>
-                    <code-name-base>org.openide.util.ui</code-name-base>
-                    <build-prerequisite/>
-                    <compile-dependency/>
-                    <run-dependency>
-                        <specification-version>9.4.1</specification-version>
-                    </run-dependency>
-                </dependency>
-            </module-dependencies>
-            <public-packages/>
-        </data>
-    </configuration>
-</project>

+ 0 - 1
jme3-ios/nbproject/suite.properties

@@ -1 +0,0 @@
-suite.dir=${basedir}/..

+ 0 - 7
jme3-ios/src/com/jme3/gde/ios/Bundle.properties

@@ -1,7 +0,0 @@
-avian-data=avian-data
-OpenIDE-Module-Display-Category=jME3 - SDK Plugin
-OpenIDE-Module-Long-Description=\
-    This pre-alpha version of iOS deployment requires MacOSX and XCode.\n\n\
-    See https://wiki.jmonkeyengine.org/jme3/ios.html
-OpenIDE-Module-Name=iOS Support
-OpenIDE-Module-Short-Description=Support for iOS distribution (pre-alpha)

+ 0 - 58
jme3-ios/src/com/jme3/gde/ios/IosImportantFiles.java

@@ -1,58 +0,0 @@
-/*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
-package com.jme3.gde.ios;
-
-import com.jme3.gde.core.importantfiles.ImportantFiles;
-import java.util.ArrayList;
-import org.netbeans.api.project.Project;
-import org.openide.filesystems.FileObject;
-import org.openide.loaders.DataObject;
-import org.openide.loaders.DataObjectNotFoundException;
-import org.openide.nodes.Node;
-import org.openide.util.Exceptions;
-
-/**
- *
- * @author normenhansen
- */
[email protected](service = ImportantFiles.class)
-public class IosImportantFiles implements ImportantFiles {
-
-    @Override
-    public Node[] getNodes(Project project) {
-        ArrayList<Node> list = new ArrayList<Node>();
-        try {
-            FileObject mainAct = project.getProjectDirectory().getFileObject("ios/ios.properties");
-            if (mainAct != null) {
-                Node node = DataObject.find(mainAct).getNodeDelegate();
-                node.setDisplayName("iOS Properties");
-                list.add(node);
-            }
-            FileObject manif = project.getProjectDirectory().getFileObject("ios/src/JmeAppHarness.java");
-            if (manif != null) {
-                Node node = DataObject.find(manif).getNodeDelegate();
-                node.setDisplayName("iOS Harness (java)");
-                list.add(node);
-            }
-            FileObject buildProp = project.getProjectDirectory().getFileObject("ios/src/JmeAppHarness.m");
-            if (buildProp != null) {
-                Node node = DataObject.find(buildProp).getNodeDelegate();
-                node.setDisplayName("iOS Harness (native)");
-                list.add(node);
-            }
-        } catch (DataObjectNotFoundException ex) {
-            Exceptions.printStackTrace(ex);
-        }
-        return list.toArray(new Node[list.size()]);
-    }
-
-    @Override
-    public boolean hasFiles(Project proj) {
-        if (proj.getProjectDirectory().getFileObject("ios/ios.properties") != null) {
-            return true;
-        }
-        return false;
-    }
-}

+ 0 - 87
jme3-ios/src/com/jme3/gde/ios/IosTool.java

@@ -1,87 +0,0 @@
-/*
- *  Copyright (c) 2009-2012 jMonkeyEngine
- *  All rights reserved.
- * 
- *  Redistribution and use in source and binary forms, with or without
- *  modification, are permitted provided that the following conditions are
- *  met:
- * 
- *  * Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 
- *  * Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- * 
- *  * Neither the name of 'jMonkeyEngine' nor the names of its contributors
- *    may be used to endorse or promote products derived from this software
- *    without specific prior written permission.
- * 
- *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- *  TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- *  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
- *  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- *  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- *  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
- *  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- *  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-package com.jme3.gde.ios;
-
-import java.io.File;
-import java.util.ArrayList;
-import java.util.List;
-import org.openide.filesystems.FileObject;
-import org.openide.filesystems.FileUtil;
-
-/**
- * Various tools for iOS deployment, discovers XCode and SDK locations, SDK
- * versions and installs the avian resource files.
- *
- * @author normenhansen
- */
-public class IosTool {
-
-    public static String getIosDeveloperRootName() {
-        FileObject devRoot = getIosDeveloperRoot();
-        if (devRoot != null) {
-            return devRoot.getPath();
-        }
-        return null;
-    }
-
-    public static FileObject getIosDeveloperRoot() {
-        File oldDevRoot = new File("/Developer");
-        File newDevRoot = new File("/Applications/Xcode.app/Contents/Developer");
-        if (newDevRoot.exists() && newDevRoot.isDirectory()) {
-            return FileUtil.toFileObject(newDevRoot);
-        } else if (oldDevRoot.exists() && oldDevRoot.isDirectory()) {
-            return FileUtil.toFileObject(oldDevRoot);
-        }
-        return null;
-    }
-
-    public static List<String> getIosSdkVersions(String target) {
-        ArrayList<String> sdkList = new ArrayList<String>();
-        FileObject devRoot = getIosDeveloperRoot();
-        if (devRoot == null) {
-            return sdkList;
-        }
-        FileObject sdkRoot = devRoot.getFileObject("Platforms/" + target + ".platform/Developer/SDKs");
-        FileObject[] sdks = sdkRoot.getChildren();
-        for (FileObject fileObject : sdks) {
-            if (fileObject.isFolder()) {
-                if (fileObject.getName().equals(target)) {
-                    sdkList.add("default"); // instead of an empty field, we add "default"
-                } else if (fileObject.getName().startsWith(target)) {
-                    sdkList.add(fileObject.getName().substring(target.length(), fileObject.getName().length()));
-                }
-            }
-        }
-        return sdkList;
-    }
-
-}

BIN
jme3-ios/src/com/jme3/gde/ios/ios-data.zip


+ 0 - 235
jme3-ios/src/com/jme3/gde/ios/ios-targets.xml

@@ -1,235 +0,0 @@
-    <target name="build-ios">
-        <antcall target="build-ios-arm" inheritall="false" inheritrefs="false"/>
-        <antcall target="build-ios-arm64" inheritall="false" inheritrefs="false"/>
-        <antcall target="build-ios-x86_64" inheritall="false" inheritrefs="false"/>
-        <echo>The needed native iOS libraries have been built, open the XCode project at ios/project to run the application on iOS.</echo>
-    </target>
-
-    <target name="build-ios-arm" depends="init, -init-platform-arm, -create-properties, -build-ios" description="Builds iOS libraries for device"/>
-    
-    <target name="build-ios-arm64" depends="init, -init-platform-arm64, -create-properties, -build-ios" description="Builds iOS libraries for device"/>
-    
-    <target name="build-ios-x86_64" depends="init, -init-platform-x86_64, -create-properties, -build-ios" description="Builds iOS libraries for simulator (64 bit)"/>
-
-    <target name="-init-platform-arm" description="Initialize for arm platform">
-        <property name="ios.arch" value="arm"/>
-        <property file="ios/ios.properties"/>
-    </target>
-
-    <target name="-init-platform-arm64" description="Initialize for arm64 platform">
-        <property name="ios.arch" value="arm64"/>
-        <property file="ios/ios.properties"/>
-    </target>
-    
-    <target name="-init-platform-x86_64" description="Initialize for x86_64 platform">
-        <property name="ios.arch" value="x86_64"/>
-        <property file="ios/ios.properties"/>
-    </target>
-    
-    <target name="-check-properties-platform" description="Checks the used platform (arm/x86_64)">
-        <taskdef resource="proguard/ant/task.properties"
-             classpath="${libs.pro-guard.classpath}"/>
-        <condition property="ios.do.arm">
-            <equals arg1="${ios.arch}" arg2="arm"/>
-        </condition>
-        <condition property="ios.do.arm64">
-            <equals arg1="${ios.arch}" arg2="arm64"/>
-        </condition>
-        <condition property="ios.do.x86_64">
-            <equals arg1="${ios.arch}" arg2="x86_64"/>
-        </condition>
-    </target>
-    
-    <target name="-create-properties-arm" if="ios.do.arm" description="Sets properties for arm build">
-        <property name="ios.target" value="iPhoneOS"/>
-        <property name="ios.arch.flag" value="${ios.arm.flag}"/>
-        
-        <property name="ios.avian.classpath" value="${ios.avian.arm.classpath}"/>
-        <property name="ios.avian.bootimage-generator" value="${ios.avian.arm.bootimage-generator}"/>
-        <property name="ios.avian.generator" value="${ios.avian.arm.generator}"/>
-        <property name="ios.avian.converter" value="${ios.avian.arm.converter}"/>
-        <property name="ios.avian.binary" value="${ios.avian.arm.binary}"/>
-    </target>
-
-    <target name="-create-properties-arm64" if="ios.do.arm64" description="Sets properties for arm64 build">
-        <property name="ios.target" value="iPhoneOS"/>
-        <property name="ios.arch.flag" value="${ios.arm64.flag}"/>
-        
-        <property name="ios.avian.classpath" value="${ios.avian.arm64.classpath}"/>
-        <property name="ios.avian.bootimage-generator" value="${ios.avian.arm64.bootimage-generator}"/>
-        <property name="ios.avian.generator" value="${ios.avian.arm64.generator}"/>
-        <property name="ios.avian.converter" value="${ios.avian.arm64.converter}"/>
-        <property name="ios.avian.binary" value="${ios.avian.arm64.binary}"/>
-    </target>
-
-    <target name="-create-properties-x86_64" if="ios.do.x86_64" description="Sets properties for x86_64 build">
-        <property name="ios.target" value="iPhoneSimulator"/>
-        <property name="ios.arch.flag" value="${ios.x86_64.flag}"/>
-        
-        <property name="ios.avian.classpath" value="${ios.avian.x86_64.classpath}"/>
-        <property name="ios.avian.bootimage-generator" value="${ios.avian.x86_64.bootimage-generator}"/>
-        <property name="ios.avian.generator" value="${ios.avian.x86_64.generator}"/>
-        <property name="ios.avian.converter" value="${ios.avian.x86_64.converter}"/>
-        <property name="ios.avian.binary" value="${ios.avian.x86_64.binary}"/>
-    </target>
-    
-    <target name="-create-properties" depends="-check-properties-platform, -create-properties-arm, -create-properties-arm64, -create-properties-x86_64" description="Sets global properties based on platform">
-        <property name="ios.sdk.sysroot" value="${ios.dev.root}/Platforms/${ios.target}.platform/Developer/SDKs/${ios.target}${ios.version}.sdk"/>
-        <property name="ios.cc.compiler.path" value="${ios.dev.root}/Toolchains/XcodeDefault.xctoolchain/usr/bin/${ios.cc.compiler}"/>
-        <property name="ios.cc.flags" value="-isysroot ${ios.sdk.sysroot} -arch ${ios.arch.flag}"/>
-    </target>
-    
-    <target name="-build-ios" depends="-compile-ios-java,
-                                     -package-ios-classpath,
-                                     -make-ios-resourceimage,
-                                     -make-ios-bootimage,
-                                     -compile-ios-native,
-                                     -expand-ios-binary,
-                                     -create-ios-library-list"/>
-    
-    <target name="-compile-ios-java" description="Compiles the java classes for iOS">
-        <mkdir dir="${ios.java.classes.dir}"/>
-        <javac
-            source="1.8"
-            target="1.8"
-            destdir="${ios.java.classes.dir}"
-            srcdir="${ios.cc.source.dir}"
-            classpath="${run.classpath}"/>
-        <copy todir="${ios.java.classes.dir}">
-            <fileset dir="${ios.cc.source.dir}" excludes="${build.classes.excludes},${excludes},**/*.c,**/*.m" includes="${includes}"/>
-        </copy>
-    </target>
-    
-    <target name="-check-classpath-uptodate" description="Checks if the iOS classpath needs to be rebuilt">
-        <!--TODO: not very safe check for changes-->
-        <uptodate property="ios.classpath.uptodate" targetfile="${ios.classpath.checkfile}">
-            <srcfiles dir="${build.classes.dir}" includes="**/*.class"/>
-            <srcfiles file="${build.dir}/${assets.jar.name}"/>
-            <srcfiles dir="${ios.cc.source.dir}" includes="**/*.java"/>
-        </uptodate>
-    </target>
-    
-    <target name="-package-ios-classpath" unless="ios.classpath.uptodate" depends="-check-classpath-uptodate" description="Packages the iOS classpath using proguard">
-        <mkdir dir="${ios.build.classes.dir}"/>
-        <echo>Packaging iOS classpath and resources</echo>
-        <!--TODO: use internal references instead of dist/lib output-->
-        <pathconvert pathsep="${path.separator}" property="ios.avian.project.classpath">
-            <path>
-                <fileset dir="${dist.dir}/lib" 
-                        includes="*.jar"
-                        excludes="${ios.jar.excludes}"/>
-                <fileset file="${dist.jar}"/>
-            </path>
-        </pathconvert>
-        <proguard>
-            -injars  ${ios.avian.classpath}:${ios.java.classes.dir}:${ios.avian.project.classpath}
-            -outjars ${ios.build.classes.dir}(**.class)
-            -outjars ${ios.build.resources.jar}
-            -include ${ios.proguard.vm.path}
-            -include ${ios.proguard.openjdk.path}
-            -dontusemixedcaseclassnames
-            -dontwarn
-            -dontnote
-            -dontobfuscate
-            -dontoptimize
-            -allowaccessmodification
-            -dontpreverify
-            ${ios.proguard.options}
-        </proguard>
-        <unzip dest="${ios.build.classes.dir}" overwrite="true">
-            <fileset dir="${ios.build.classes.dir}" includes="**/*.jar"/>
-        </unzip>
-        <delete quiet="true">
-            <fileset dir="${ios.build.classes.dir}" includes="**/*.jar"/>
-        </delete>
-        <delete failonerror="false">
-            <fileset dir="${ios.build.classes.dir}" includes="${ios.classpath.excludes}"/>
-        </delete>
-        <touch file="${ios.classpath.checkfile}" verbose="false"/>
-    </target>
-    
-    <target name="-check-images-uptodate" description="Checks if the binary images for iOS are up to date">
-        <uptodate property="ios.images.uptodate" targetfile="${ios.images.checkfile}">
-            <srcfiles dir="${ios.build.classes.dir}" includes="**/*.class"/>
-            <srcfiles file="${ios.build.resources.jar}"/>
-        </uptodate>
-    </target>
-    
-    <target name="-make-ios-resourceimage" unless="ios.images.uptodate" depends="-check-images-uptodate" description="Creates the iOS resources image">
-        <mkdir dir="${ios.build.libs.dir}"/>
-        <delete file="${ios.build.resources.o}"/>
-        <echo>Creating iOS resources object file for ${ios.arch}</echo>
-        <exec executable="${ios.avian.converter}" failonerror="true">
-            <arg line="${ios.build.resources.jar}"/>
-            <arg line="${ios.build.resources.o}"/>
-            <arg line="_binary_resources_jar_start"/>
-            <arg line="_binary_resources_jar_end"/>
-            <arg line="${ios.platform}"/>
-            <arg line="${ios.arch}"/>
-            <arg line="1"/>
-        </exec>
-    </target>
-    
-    <target name="-make-ios-bootimage" unless="ios.images.uptodate" depends="-check-images-uptodate" description="Creates the iOS boot image and code image">
-        <mkdir dir="${ios.build.libs.dir}"/>
-        <delete file="${ios.build.bootimage.o}"/>
-        <delete file="${ios.build.codeimage.o}"/>
-        <echo>Creating iOS bootimage and codeimage for ${ios.arch}</echo>
-        <exec executable="${ios.avian.bootimage-generator}" failonerror="true">
-            <arg line="-cp ${ios.build.classes.dir}"/>
-            <arg line="-bootimage ${ios.build.bootimage.o}"/>
-            <arg line="-codeimage ${ios.build.codeimage.o}"/>
-        </exec>
-        <touch file="${ios.images.checkfile}" verbose="false"/>
-    </target>
-    
-    <target name="-compile-ios-native" description="Compiles the native classes from ios/src for the iOS project">
-        <echo>Compiling native code for ${ios.arch}</echo>
-        <mkdir dir="${ios.build.libs.dir}"/>
-        <apply executable="${ios.cc.compiler.path}" failonerror="true" dir="${ios.build.libs.dir}">
-            <arg value="-c"/>
-            <fileset dir="${ios.cc.source.dir}">
-                <include name="*.c"/>
-                <include name="*.m"/>
-                <modified update="true"
-                        seldirs="true"
-                        cache="propertyfile"
-                        algorithm="digest"
-                        comparator="equal">
-                    <param name="cache.cachefile"     value="${ios.cc.cache}"/>
-                    <param name="algorithm.algorithm" value="MD5"/>
-                </modified>
-            </fileset>
-            <arg line="${ios.cc.flags} ${ios.cc.cflags}"/>
-        </apply>
-    </target>
-
-    <target name="-expand-ios-binary" unless="ios.images.uptodate" description="Expands libavian.a to .o files for the iOS project">
-        <mkdir dir="${ios.build.libs.dir}"/>
-        <echo>Expanding libavian.a for ${ios.arch}</echo>
-        <exec executable="ar" dir="${ios.build.libs.dir}" failonerror="true">
-            <arg line="x"/>
-            <arg line="'${ios.avian.binary}'"/>
-        </exec>
-        <delete file="${ios.build.libs.dir}/__.SYMDEF" failonerror="false" quiet="true"/>
-    </target>
-    
-    <target name="-check-libs-uptodate" description="Checks if the .o library list is up to date">
-        <uptodate property="ios.libs.uptodate" targetfile="${ios.build.libs.file}">
-            <srcfiles dir="${ios.build.libs.dir}" includes="**/*.o"/>
-        </uptodate>
-    </target>
-    
-    <target name="-create-ios-library-list" unless="ios.libs.uptodate" depends="-check-libs-uptodate" description="Creates the .o library list">
-        <echo>Create library list for ${ios.arch}</echo>
-        <pathconvert property="ios.build.arch.dir.resolved">
-            <path path="${basedir}"/>
-        </pathconvert>
-        <fileset id="ios.build.libs.fileset" dir="${ios.build.libs.dir}">
-            <include name="*.o"/>
-        </fileset>
-        <pathconvert pathsep="${line.separator}" property="ios.build.libs.list" refid="ios.build.libs.fileset">
-            <map from="${ios.build.arch.dir.resolved}/" to="../../"/>
-        </pathconvert>
-        <echo file="${ios.build.libs.file}" force="true">${ios.build.libs.list}</echo>
-    </target>

+ 0 - 4
jme3-ios/src/com/jme3/gde/ios/layer.xml

@@ -1,4 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.2//EN" "http://www.netbeans.org/dtds/filesystem-1_2.dtd">
-<filesystem>
-</filesystem>

+ 0 - 9
jme3-ios/src/com/jme3/gde/ios/panel/Bundle.properties

@@ -1,9 +0,0 @@
-# To change this template, choose Tools | Templates
-# and open the template in the editor.
-LBL_Category_iOS=iOS
-IosCustomizerPanel.jCheckBox1.text=Enable iOS deployment
-IosCustomizerPanel.jLabel1.text=iOS SDK Version
-IosCustomizerPanel.jCheckBox2.text=delete ios folder when disabling deployment
-IosCustomizerPanel.jTextField1.text=com.mycompany.mygame
-IosCustomizerPanel.jLabel2.text=App ID
-IosCustomizerPanel.jTextArea1.text=Note that iOS deployment only works on MacOSX with XCode installed!\n\nWhen building your project the native binaries for iOS will be created and imported in a normal XCode project. After building the project, open the XCode project at ios/project/jme-ios.xcodeproj to configure, run, deploy or send the application to the App Store.\n\nYou can call native Obj-C code by using or adding .java and .m source files located at ios/src.

+ 0 - 213
jme3-ios/src/com/jme3/gde/ios/panel/IosCompositeProvider.java

@@ -1,213 +0,0 @@
-/*
- *  Copyright (c) 2009-2012 jMonkeyEngine
- *  All rights reserved.
- * 
- *  Redistribution and use in source and binary forms, with or without
- *  modification, are permitted provided that the following conditions are
- *  met:
- * 
- *  * Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 
- *  * Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- * 
- *  * Neither the name of 'jMonkeyEngine' nor the names of its contributors
- *    may be used to endorse or promote products derived from this software
- *    without specific prior written permission.
- * 
- *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- *  TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- *  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
- *  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- *  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- *  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
- *  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- *  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-package com.jme3.gde.ios.panel;
-
-import com.jme3.gde.ios.IosTool;
-import com.jme3.gde.core.j2seproject.ProjectExtensionManager;
-import com.jme3.gde.core.j2seproject.ProjectExtensionProperties;
-import com.jme3.gde.core.util.ZipExtensionTool;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.io.BufferedWriter;
-import java.io.IOException;
-import java.io.OutputStream;
-import java.io.OutputStreamWriter;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-import javax.swing.JComponent;
-
-import org.netbeans.api.project.Project;
-import org.netbeans.spi.project.ui.support.ProjectCustomizer;
-import org.openide.DialogDisplayer;
-import org.openide.NotifyDescriptor;
-import org.openide.filesystems.FileObject;
-import org.openide.util.Exceptions;
-import org.openide.util.Lookup;
-import org.openide.util.NbBundle;
-
-/**
- *
- * @author normenhansen
- */
[email protected](projectType = "org-netbeans-modules-java-j2seproject", category = "Application", position = 410)
-public class IosCompositeProvider implements ProjectCustomizer.CompositeCategoryProvider {
-
-    private static final Logger logger = Logger.getLogger(IosCompositeProvider.class.getName());
-    private static final String CAT_MOBILE = "iOSDeployment"; // NOI18N
-    private static ProjectExtensionProperties jwsProps = null;
-    private String[] keyList = new String[]{
-        "application.title",
-        "main.class",
-        "ios.enabled",
-        "ios.version"
-    };
-    private String[] privateKeyList = new String[]{
-        "ios.avian.path",
-        "ios.dev.root"
-    };
-
-    public IosCompositeProvider() {
-    }
-
-    @Override
-    public ProjectCustomizer.Category createCategory(Lookup context) {
-        return ProjectCustomizer.Category.create(CAT_MOBILE,
-                NbBundle.getMessage(IosCompositeProvider.class, "LBL_Category_iOS"), null);
-    }
-
-    @Override
-    public JComponent createComponent(ProjectCustomizer.Category category, Lookup context) {
-        jwsProps = new ProjectExtensionProperties(context.lookup(Project.class), keyList);
-        IosCustomizerPanel panel = new IosCustomizerPanel(jwsProps);
-        category.setStoreListener(new SavePropsListener(jwsProps, context.lookup(Project.class)));
-        category.setOkButtonListener(panel);
-        return panel;
-    }
-
-    private class SavePropsListener implements ActionListener {
-
-        private String extensionName = "ios";
-        private String extensionVersion = "v1.0";
-        private String avianVersion = "v1.1.2";
-        private String[] extensionDependencies = new String[]{"jar", "build-ios"};
-        private ProjectExtensionManager manager = new ProjectExtensionManager(extensionName, extensionVersion, extensionDependencies);
-        private ProjectExtensionProperties properties;
-        private Project project;
-
-        public SavePropsListener(ProjectExtensionProperties props, Project project) {
-            this.properties = props;
-            this.project = project;
-        }
-
-        public void actionPerformed(ActionEvent e) {
-            if (IosTool.getIosSdkVersions("iPhoneOS").isEmpty()) {
-                showError("No XCode SDK could be found!\nPlease install XCode before proceeding.", null);
-                return;
-            }
-            ProjectExtensionProperties privateProps = new ProjectExtensionProperties(project, privateKeyList, true);
-            manager.setDataZip("nbres:/com/jme3/gde/ios/ios-data.zip");
-            manager.setAntTaskLibrary("pro-guard");
-            ZipExtensionTool zipExt = new ZipExtensionTool(IosTool.class.getPackage().getName(), "avian-openjdk", avianVersion);
-            //zipExt.SUFFIX_LINUX = "mac";
-            //zipExt.SUFFIX_WIN = "mac";
-
-            if ("true".equals(properties.getProperty("ios.enabled"))) {
-                zipExt.install(true);
-                privateProps.setProperty("ios.avian.path", zipExt.getPath());
-                privateProps.setProperty("ios.dev.root", IosTool.getIosDeveloperRootName());
-                manager.loadTargets("nbres:/com/jme3/gde/ios/ios-targets.xml");
-                manager.checkExtension(project);
-                //manager.addRunConfiguration(project, "run-android", "Android Device", "run-android", "run-android", "clean clean-android");
-                FileObject resFolder = project.getProjectDirectory().getFileObject("resources/ios");
-                FileObject projFolder = resFolder.getFileObject("templates/project");
-                FileObject srcFolder = resFolder.getFileObject("templates/src");
-                FileObject propsFile = resFolder.getFileObject("templates/ios.properties");
-                FileObject iosFolder = project.getProjectDirectory().getFileObject("ios");
-                if (iosFolder == null) {
-                    try {
-                        iosFolder = project.getProjectDirectory().createFolder("ios");
-                        projFolder.copy(iosFolder, projFolder.getName(), null);
-                        propsFile.copy(iosFolder, propsFile.getName(), propsFile.getExt());
-                        FileObject newSrcFolder = srcFolder.copy(iosFolder, srcFolder.getName(), null);
-                        replaceHarnessData(newSrcFolder, properties);
-                    } catch (IOException ex) {
-                        showError("Error creating iOS folders", ex);
-                        return;
-                    }
-                }
-                project.getProjectDirectory().refresh();
-            } else {
-                manager.removeExtension(project);
-                if ("true".equals(properties.getProperty("delete.folder"))) {
-                    FileObject iosFolder = project.getProjectDirectory().getFileObject("ios");
-                    if (iosFolder != null) {
-                        try {
-                            iosFolder.delete();
-                        } catch (IOException ex) {
-                            showError("Error deleting iosfolder", ex);
-                            Exceptions.printStackTrace(ex);
-                        }
-                    }
-                }
-                project.getProjectDirectory().refresh();
-            }
-            try {
-                properties.store();
-                privateProps.store();
-            } catch (IOException ioe) {
-                showError("Error storing properties", ioe);
-                Exceptions.printStackTrace(ioe);
-            }
-        }
-
-        private void replaceHarnessData(FileObject newSrcFolder, ProjectExtensionProperties properties) throws IOException {
-            //replace harness data
-            FileObject appHarnessFile = newSrcFolder.getFileObject("JmeAppHarness.java");
-            String text = appHarnessFile.asText();
-            String mainClass = properties.getProperty("main.class");
-            if (text == null || mainClass == null) {
-                logger.log(Level.INFO, "Could not replace harness data in folder {0}, file {4}, text = [{1}], mainClass = [{2}]", new Object[]{newSrcFolder, text, mainClass, appHarnessFile});
-                return;
-            }
-            text = text.replace("${main.class}", mainClass);
-            OutputStream out = appHarnessFile.getOutputStream();
-            BufferedWriter wrt = null;
-            try {
-                wrt = new BufferedWriter(new OutputStreamWriter(out));
-                wrt.write(text, 0, text.length());
-            } catch (IOException ey) {
-                Exceptions.printStackTrace(ey);
-            } finally {
-                if (wrt != null) {
-                    wrt.close();
-                }
-                if (out != null) {
-                    out.close();
-                }
-            }
-        }
-    }
-
-    private void showError(String message, Exception ex) {
-        String mesg = message;
-        if (ex != null) {
-            Exceptions.printStackTrace(ex);
-            mesg = mesg + "\n" + ex.getMessage();
-        }
-        NotifyDescriptor.Confirmation msg = new NotifyDescriptor.Confirmation(
-                mesg,
-                NotifyDescriptor.DEFAULT_OPTION,
-                NotifyDescriptor.ERROR_MESSAGE);
-        DialogDisplayer.getDefault().notify(msg);
-
-    }
-}

+ 0 - 146
jme3-ios/src/com/jme3/gde/ios/panel/IosCustomizerPanel.form

@@ -1,146 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-
-<Form version="1.5" maxVersion="1.7" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
-  <AuxValues>
-    <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="1"/>
-    <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
-    <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
-    <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
-    <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="true"/>
-    <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
-    <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
-    <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
-    <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
-  </AuxValues>
-
-  <Layout>
-    <DimensionLayout dim="0">
-      <Group type="103" groupAlignment="0" attributes="0">
-          <Group type="102" alignment="0" attributes="0">
-              <EmptySpace max="-2" attributes="0"/>
-              <Group type="103" groupAlignment="0" attributes="0">
-                  <Component id="jScrollPane1" max="32767" attributes="0"/>
-                  <Component id="jCheckBox1" max="32767" attributes="0"/>
-                  <Group type="102" alignment="0" attributes="0">
-                      <Group type="103" groupAlignment="0" attributes="0">
-                          <Component id="jLabel1" min="-2" pref="113" max="-2" attributes="0"/>
-                          <Component id="jLabel2" min="-2" pref="75" max="-2" attributes="0"/>
-                      </Group>
-                      <EmptySpace max="-2" attributes="0"/>
-                      <Group type="103" groupAlignment="0" attributes="0">
-                          <Group type="102" attributes="0">
-                              <Component id="jComboBox1" min="-2" pref="117" max="-2" attributes="0"/>
-                              <EmptySpace min="0" pref="0" max="32767" attributes="0"/>
-                          </Group>
-                          <Component id="jTextField1" max="32767" attributes="0"/>
-                      </Group>
-                  </Group>
-                  <Component id="jCheckBox2" alignment="0" pref="500" max="32767" attributes="0"/>
-              </Group>
-              <EmptySpace max="-2" attributes="0"/>
-          </Group>
-      </Group>
-    </DimensionLayout>
-    <DimensionLayout dim="1">
-      <Group type="103" groupAlignment="0" attributes="0">
-          <Group type="102" alignment="1" attributes="0">
-              <EmptySpace max="-2" attributes="0"/>
-              <Component id="jCheckBox1" min="-2" max="-2" attributes="0"/>
-              <EmptySpace max="-2" attributes="0"/>
-              <Component id="jCheckBox2" min="-2" max="-2" attributes="0"/>
-              <EmptySpace max="-2" attributes="0"/>
-              <Group type="103" groupAlignment="3" attributes="0">
-                  <Component id="jComboBox1" alignment="3" min="-2" max="-2" attributes="0"/>
-                  <Component id="jLabel1" alignment="3" min="-2" max="-2" attributes="0"/>
-              </Group>
-              <EmptySpace type="unrelated" max="-2" attributes="0"/>
-              <Group type="103" groupAlignment="3" attributes="0">
-                  <Component id="jLabel2" alignment="3" min="-2" max="-2" attributes="0"/>
-                  <Component id="jTextField1" alignment="3" min="-2" max="-2" attributes="0"/>
-              </Group>
-              <EmptySpace max="-2" attributes="0"/>
-              <Component id="jScrollPane1" pref="171" max="32767" attributes="0"/>
-              <EmptySpace max="-2" attributes="0"/>
-          </Group>
-      </Group>
-    </DimensionLayout>
-  </Layout>
-  <SubComponents>
-    <Component class="javax.swing.JCheckBox" name="jCheckBox1">
-      <Properties>
-        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
-          <ResourceString bundle="com/jme3/gde/ios/panel/Bundle.properties" key="IosCustomizerPanel.jCheckBox1.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
-        </Property>
-      </Properties>
-    </Component>
-    <Component class="javax.swing.JComboBox" name="jComboBox1">
-      <Properties>
-        <Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor">
-          <StringArray count="4">
-            <StringItem index="0" value="Item 1"/>
-            <StringItem index="1" value="Item 2"/>
-            <StringItem index="2" value="Item 3"/>
-            <StringItem index="3" value="Item 4"/>
-          </StringArray>
-        </Property>
-      </Properties>
-      <AuxValues>
-        <AuxValue name="JavaCodeGenerator_TypeParameters" type="java.lang.String" value="&lt;String&gt;"/>
-      </AuxValues>
-    </Component>
-    <Component class="javax.swing.JLabel" name="jLabel1">
-      <Properties>
-        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
-          <ResourceString bundle="com/jme3/gde/ios/panel/Bundle.properties" key="IosCustomizerPanel.jLabel1.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
-        </Property>
-      </Properties>
-    </Component>
-    <Component class="javax.swing.JCheckBox" name="jCheckBox2">
-      <Properties>
-        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
-          <ResourceString bundle="com/jme3/gde/ios/panel/Bundle.properties" key="IosCustomizerPanel.jCheckBox2.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
-        </Property>
-      </Properties>
-    </Component>
-    <Component class="javax.swing.JTextField" name="jTextField1">
-      <Properties>
-        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
-          <ResourceString bundle="com/jme3/gde/ios/panel/Bundle.properties" key="IosCustomizerPanel.jTextField1.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
-        </Property>
-      </Properties>
-    </Component>
-    <Component class="javax.swing.JLabel" name="jLabel2">
-      <Properties>
-        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
-          <ResourceString bundle="com/jme3/gde/ios/panel/Bundle.properties" key="IosCustomizerPanel.jLabel2.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
-        </Property>
-      </Properties>
-    </Component>
-    <Container class="javax.swing.JScrollPane" name="jScrollPane1">
-      <Properties>
-        <Property name="enabled" type="boolean" value="false"/>
-      </Properties>
-      <AuxValues>
-        <AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/>
-      </AuxValues>
-
-      <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
-      <SubComponents>
-        <Component class="javax.swing.JTextArea" name="jTextArea1">
-          <Properties>
-            <Property name="columns" type="int" value="20"/>
-            <Property name="lineWrap" type="boolean" value="true"/>
-            <Property name="rows" type="int" value="5"/>
-            <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
-              <ResourceString bundle="com/jme3/gde/ios/panel/Bundle.properties" key="IosCustomizerPanel.jTextArea1.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
-            </Property>
-            <Property name="wrapStyleWord" type="boolean" value="true"/>
-            <Property name="disabledTextColor" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
-              <Color blue="0" green="0" red="0" type="rgb"/>
-            </Property>
-          </Properties>
-        </Component>
-      </SubComponents>
-    </Container>
-  </SubComponents>
-</Form>

+ 0 - 194
jme3-ios/src/com/jme3/gde/ios/panel/IosCustomizerPanel.java

@@ -1,194 +0,0 @@
-/*
- *  Copyright (c) 2009-2012 jMonkeyEngine
- *  All rights reserved.
- * 
- *  Redistribution and use in source and binary forms, with or without
- *  modification, are permitted provided that the following conditions are
- *  met:
- * 
- *  * Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 
- *  * Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- * 
- *  * Neither the name of 'jMonkeyEngine' nor the names of its contributors
- *    may be used to endorse or promote products derived from this software
- *    without specific prior written permission.
- * 
- *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- *  TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- *  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
- *  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- *  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- *  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
- *  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- *  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-/*
- * LwjglAppletCustomizerPanel.java
- *
- * Created on 11.11.2010, 16:56:53
- */
-package com.jme3.gde.ios.panel;
-
-import com.jme3.gde.core.j2seproject.ProjectExtensionProperties;
-import com.jme3.gde.ios.IosTool;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.util.List;
-import org.openide.util.HelpCtx;
-
-/**
- *
- * @author normenhansen
- */
-public class IosCustomizerPanel extends javax.swing.JPanel implements ActionListener {
-
-    private final ProjectExtensionProperties properties;
-
-    /**
-     * Creates new form LwjglAppletCustomizerPanel
-     */
-    public IosCustomizerPanel(ProjectExtensionProperties properties) {
-        this.properties = properties;
-        initComponents();
-        HelpCtx.setHelpIDString(this, "jme3.ios");
-        jComboBox1.removeAllItems();
-        List<String> versions = IosTool.getIosSdkVersions("iPhoneOS");
-        for (String string : versions) {
-            jComboBox1.addItem(string);
-        }
-        loadProperties();
-    }
-
-    private void loadProperties() {
-        boolean enabled = "true".equals(properties.getProperty("ios.enabled"));
-        String version = properties.getProperty("ios.version");
-        if (version != null) {
-            setSelected(version);
-        }
-        jCheckBox1.setSelected(enabled);
-    }
-
-    private void saveProperties() {
-        //TODO: check properties
-        properties.setProperty("ios.enabled", "" + jCheckBox1.isSelected());
-        String version = jComboBox1.getItemAt(jComboBox1.getSelectedIndex());
-        properties.setProperty("ios.version", version);
-        properties.setProperty("delete.folder", "" + jCheckBox2.isSelected());
-    }
-
-    private void setSelected(String name) {
-        for (int i = 0; i < jComboBox1.getItemCount(); i++) {
-            String target = jComboBox1.getItemAt(i);
-            if (target.equals(name)) {
-                jComboBox1.setSelectedIndex(i);
-                return;
-            }
-        }
-    }
-
-    @Override
-    public void actionPerformed(ActionEvent e) {
-        saveProperties();
-    }
-
-    /**
-     * This method is called from within the constructor to initialize the form.
-     * WARNING: Do NOT modify this code. The content of this method is always
-     * regenerated by the Form Editor.
-     */
-    @SuppressWarnings("unchecked")
-    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
-    private void initComponents() {
-
-        jCheckBox1 = new javax.swing.JCheckBox();
-        jComboBox1 = new javax.swing.JComboBox<>();
-        jLabel1 = new javax.swing.JLabel();
-        jCheckBox2 = new javax.swing.JCheckBox();
-        jTextField1 = new javax.swing.JTextField();
-        jLabel2 = new javax.swing.JLabel();
-        jScrollPane1 = new javax.swing.JScrollPane();
-        jTextArea1 = new javax.swing.JTextArea();
-
-        jCheckBox1.setText(org.openide.util.NbBundle.getMessage(IosCustomizerPanel.class, "IosCustomizerPanel.jCheckBox1.text")); // NOI18N
-
-        jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
-
-        jLabel1.setText(org.openide.util.NbBundle.getMessage(IosCustomizerPanel.class, "IosCustomizerPanel.jLabel1.text")); // NOI18N
-
-        jCheckBox2.setText(org.openide.util.NbBundle.getMessage(IosCustomizerPanel.class, "IosCustomizerPanel.jCheckBox2.text")); // NOI18N
-
-        jTextField1.setText(org.openide.util.NbBundle.getMessage(IosCustomizerPanel.class, "IosCustomizerPanel.jTextField1.text")); // NOI18N
-
-        jLabel2.setText(org.openide.util.NbBundle.getMessage(IosCustomizerPanel.class, "IosCustomizerPanel.jLabel2.text")); // NOI18N
-
-        jScrollPane1.setEnabled(false);
-
-        jTextArea1.setColumns(20);
-        jTextArea1.setLineWrap(true);
-        jTextArea1.setRows(5);
-        jTextArea1.setText(org.openide.util.NbBundle.getMessage(IosCustomizerPanel.class, "IosCustomizerPanel.jTextArea1.text")); // NOI18N
-        jTextArea1.setWrapStyleWord(true);
-        jTextArea1.setDisabledTextColor(new java.awt.Color(0, 0, 0));
-        jScrollPane1.setViewportView(jTextArea1);
-
-        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
-        this.setLayout(layout);
-        layout.setHorizontalGroup(
-            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
-            .addGroup(layout.createSequentialGroup()
-                .addContainerGap()
-                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
-                    .addComponent(jScrollPane1)
-                    .addComponent(jCheckBox1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
-                    .addGroup(layout.createSequentialGroup()
-                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
-                            .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE)
-                            .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE))
-                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
-                            .addGroup(layout.createSequentialGroup()
-                                .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE)
-                                .addGap(0, 0, Short.MAX_VALUE))
-                            .addComponent(jTextField1)))
-                    .addComponent(jCheckBox2, javax.swing.GroupLayout.DEFAULT_SIZE, 500, Short.MAX_VALUE))
-                .addContainerGap())
-        );
-        layout.setVerticalGroup(
-            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
-            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
-                .addContainerGap()
-                .addComponent(jCheckBox1)
-                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-                .addComponent(jCheckBox2)
-                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
-                    .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
-                    .addComponent(jLabel1))
-                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
-                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
-                    .addComponent(jLabel2)
-                    .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
-                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 171, Short.MAX_VALUE)
-                .addContainerGap())
-        );
-    }// </editor-fold>//GEN-END:initComponents
-    // Variables declaration - do not modify//GEN-BEGIN:variables
-    private javax.swing.JCheckBox jCheckBox1;
-    private javax.swing.JCheckBox jCheckBox2;
-    private javax.swing.JComboBox<String> jComboBox1;
-    private javax.swing.JLabel jLabel1;
-    private javax.swing.JLabel jLabel2;
-    private javax.swing.JScrollPane jScrollPane1;
-    private javax.swing.JTextArea jTextArea1;
-    private javax.swing.JTextField jTextField1;
-    // End of variables declaration//GEN-END:variables
-}

+ 2 - 3
nbproject/project.properties

@@ -1,4 +1,4 @@
-#Wed, 10 Jun 2020 10:52:50 +0200
+#Mon, 11 Oct 2021 14:53:16 +0200
 app.icon=branding/core/core.jar/org/netbeans/core/startup/frame48.gif
 #same as ${branding.token}
 app.name=jmonkeyplatform
@@ -19,7 +19,7 @@ auxiliary.org-netbeans-modules-apisupport-installer.os-macosx=true
 auxiliary.org-netbeans-modules-apisupport-installer.os-solaris=false
 auxiliary.org-netbeans-modules-apisupport-installer.os-windows=true
 auxiliary.org-netbeans-modules-apisupport-installer.pack200-enabled=true
-modules=${project.com.jme3.gde.core}\:${project.com.jme3.gde.core.baselibs}\:${project.com.jme3.gde.core.libraries}\:${project.com.jme3.gde.templates}\:${project.com.jme3.gde.project.baselibs}\:${project.com.jme3.gde.project.libraries}\:${project.com.jme3.gde.tests}\:${project.com.jme3.gde.project.testdata}\:${project.com.jme3.gde.ogrexml}\:${project.com.jme3.gde.scenecomposer}\:${project.com.jme3.gde.materials}\:${project.com.jme3.gde.gui}\:${project.com.jme3.gde.ogretools}\:${project.com.jme3.gde.codepalette}\:${project.com.jme3.gde.textureeditor}\:${project.com.jme3.gde.core.updatecenters}\:${project.com.jme3.gde.wavefront}\:${project.com.jme3.gde.terraineditor}\:${project.com.jme3.gde.assetpack}\:${project.com.jme3.gde.modelimporter}\:${project.com.jme3.gde.lwjgl.applet}\:${project.com.jme3.gde.desktop.executables}\:${project.com.jme3.gde.cinematics}\:${project.com.jme3.gde.vehiclecreator}\:${project.com.jme3.gde.welcome}\:${project.com.jme3.gde.codecheck}\:${project.com.jme3.gde.obfuscate}\:${project.com.jme3.gde.blender}\:${project.com.jme3.gde.angelfont}\:${project.com.jme3.gde.android}\:${project.com.jme3.gde.nmgen}\:${project.com.jme3.gde.docs}\:${project.org.jme3.netbeans.plaf.darkmonkey}\:${project.com.jme3.gde.ios}\:${project.com.jme3.gde.glsl.highlighter}
+modules=${project.com.jme3.gde.core}\:${project.com.jme3.gde.core.baselibs}\:${project.com.jme3.gde.core.libraries}\:${project.com.jme3.gde.templates}\:${project.com.jme3.gde.project.baselibs}\:${project.com.jme3.gde.project.libraries}\:${project.com.jme3.gde.tests}\:${project.com.jme3.gde.project.testdata}\:${project.com.jme3.gde.ogrexml}\:${project.com.jme3.gde.scenecomposer}\:${project.com.jme3.gde.materials}\:${project.com.jme3.gde.gui}\:${project.com.jme3.gde.ogretools}\:${project.com.jme3.gde.codepalette}\:${project.com.jme3.gde.textureeditor}\:${project.com.jme3.gde.core.updatecenters}\:${project.com.jme3.gde.wavefront}\:${project.com.jme3.gde.terraineditor}\:${project.com.jme3.gde.assetpack}\:${project.com.jme3.gde.modelimporter}\:${project.com.jme3.gde.lwjgl.applet}\:${project.com.jme3.gde.desktop.executables}\:${project.com.jme3.gde.cinematics}\:${project.com.jme3.gde.vehiclecreator}\:${project.com.jme3.gde.welcome}\:${project.com.jme3.gde.codecheck}\:${project.com.jme3.gde.obfuscate}\:${project.com.jme3.gde.blender}\:${project.com.jme3.gde.angelfont}\:${project.com.jme3.gde.android}\:${project.com.jme3.gde.nmgen}\:${project.com.jme3.gde.docs}\:${project.org.jme3.netbeans.plaf.darkmonkey}\:${project.com.jme3.gde.glsl.highlighter}
 project.com.jme3.gde.android=jme3-android
 project.com.jme3.gde.angelfont=jme3-angelfont
 project.com.jme3.gde.blender=jme3-blender
@@ -36,7 +36,6 @@ project.com.jme3.gde.core.libraries=jme3-core-libraries
 project.com.jme3.gde.core.updatecenters=jme3-core-updatecenters
 project.com.jme3.gde.glsl.highlighter=jme3-glsl-highlighter
 project.com.jme3.gde.gui=jme3-gui
-project.com.jme3.gde.ios=jme3-ios
 project.com.jme3.gde.lwjgl.applet=jme3-lwjgl-applet
 project.com.jme3.gde.materials=jme3-materialeditor
 project.com.jme3.gde.modelimporter=jme3-model-importer