OSDN Git Service

added LifecycleListener to gdx.gwt.xml, commented reflection methods in Material...
authorMario Zechner <contact@badlogicgames.com>
Sat, 12 Jan 2013 13:54:41 +0000 (14:54 +0100)
committerMario Zechner <contact@badlogicgames.com>
Sat, 12 Jan 2013 13:54:41 +0000 (14:54 +0100)
demos/invaders/gdx-invaders-html5/.settings/com.google.gwt.eclipse.core.prefs
gdx/src/com/badlogic/gdx.gwt.xml
gdx/src/com/badlogic/gdx/graphics/g3d/materials/Material.java

index b0018a6..7aa1bfe 100644 (file)
@@ -1,4 +1,3 @@
-#Thu Mar 22 15:16:35 CET 2012\r
 eclipse.preferences.version=1\r
 filesCopiedToWebInfLib=gwt-servlet.jar\r
-gwtCompileSettings=PGd3dC1jb21waWxlLXNldHRpbmdzPjxsb2ctbGV2ZWw+SU5GTzwvbG9nLWxldmVsPjxvdXRwdXQtc3R5bGU+T0JGVVNDQVRFRDwvb3V0cHV0LXN0eWxlPjxleHRyYS1hcmdzPjwhW0NEQVRBWy1zdHJpY3QgLW9wdGltaXplIDkgLWxvY2FsV29ya2VycyA2XV0+PC9leHRyYS1hcmdzPjx2bS1hcmdzPjwhW0NEQVRBWy1YbXgxMDI0bV1dPjwvdm0tYXJncz48ZW50cnktcG9pbnQtbW9kdWxlPmNvbS5iYWRsb2dpYy5nZHhpbnZhZGVycy5HZHhJbnZhZGVyc0d3dDwvZW50cnktcG9pbnQtbW9kdWxlPjwvZ3d0LWNvbXBpbGUtc2V0dGluZ3M+\r
+gwtCompileSettings=PGd3dC1jb21waWxlLXNldHRpbmdzPjxsb2ctbGV2ZWw+SU5GTzwvbG9nLWxldmVsPjxvdXRwdXQtc3R5bGU+T0JGVVNDQVRFRDwvb3V0cHV0LXN0eWxlPjxleHRyYS1hcmdzPjwhW0NEQVRBW11dPjwvZXh0cmEtYXJncz48dm0tYXJncz48IVtDREFUQVstWG14NTEybV1dPjwvdm0tYXJncz48ZW50cnktcG9pbnQtbW9kdWxlPmNvbS5iYWRsb2dpYy5nZHhpbnZhZGVycy5HZHhJbnZhZGVyc0d3dDwvZW50cnktcG9pbnQtbW9kdWxlPjwvZ3d0LWNvbXBpbGUtc2V0dGluZ3M+\r
index 33d9373..24974a5 100644 (file)
@@ -4,6 +4,7 @@
        <source path="gdx">
                <include name="graphics/g3d/Animation.java"/>
                <include name="graphics/g3d/Animator.java"/>
+               <include name="LifecycleListener.java"/>
                <include name="Application.java"/>
                <include name="ApplicationAdapter.java"/>
                <include name="ApplicationListener.java"/>
index 74d5594..1936b24 100644 (file)
@@ -106,23 +106,23 @@ public class Material implements Iterable<MaterialAttribute> {
                return attributes.size;
        }
        
-       /** @return True if this material contains attribute of the specified type, false otherwise */
-       public <T extends MaterialAttribute> boolean hasAttribute(Class<T> type) {
-               return indexOfAttribute(type) >= 0;
-       }
-       
-       /** @return The index of the first attribute of the specified type or -1 if not available */
-       public <T extends MaterialAttribute> int indexOfAttribute(Class<T> type) {
-               for (int i = 0; i < attributes.size; i++)
-                       if (type.isInstance(attributes.get(i)))
-                               return i;
-               return -1;
-       }
-       
-       /** @return The first attribute of the specified type, or null if not available */
-       public <T extends MaterialAttribute> T getAttribute(Class<T> type) {
-               return (T)getAttribute(indexOfAttribute(type));
-       }
+//     /** @return True if this material contains attribute of the specified type, false otherwise */
+//     public <T extends MaterialAttribute> boolean hasAttribute(Class<T> type) {
+//             return indexOfAttribute(type) >= 0;
+//     }
+//     
+//     /** @return The index of the first attribute of the specified type or -1 if not available */
+//     public <T extends MaterialAttribute> int indexOfAttribute(Class<T> type) {
+//             for (int i = 0; i < attributes.size; i++)
+//                     if (type.isInstance(attributes.get(i)))
+//                             return i;
+//             return -1;
+//     }
+//     
+//     /** @return The first attribute of the specified type, or null if not available */
+//     public <T extends MaterialAttribute> T getAttribute(Class<T> type) {
+//             return (T)getAttribute(indexOfAttribute(type));
+//     }
 
        public Material copy () {
                Array<MaterialAttribute> attributes = new Array<MaterialAttribute>(this.attributes.size);