From bfb5c44bf6f274e0a794349e93c9e8ce54621217 Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Sat, 12 Jan 2013 14:54:41 +0100 Subject: [PATCH] added LifecycleListener to gdx.gwt.xml, commented reflection methods in Material so GWT backend compiles again --- .../.settings/com.google.gwt.eclipse.core.prefs | 3 +- gdx/src/com/badlogic/gdx.gwt.xml | 1 + .../gdx/graphics/g3d/materials/Material.java | 34 +++++++++++----------- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/demos/invaders/gdx-invaders-html5/.settings/com.google.gwt.eclipse.core.prefs b/demos/invaders/gdx-invaders-html5/.settings/com.google.gwt.eclipse.core.prefs index b0018a68f..7aa1bfe0d 100644 --- a/demos/invaders/gdx-invaders-html5/.settings/com.google.gwt.eclipse.core.prefs +++ b/demos/invaders/gdx-invaders-html5/.settings/com.google.gwt.eclipse.core.prefs @@ -1,4 +1,3 @@ -#Thu Mar 22 15:16:35 CET 2012 eclipse.preferences.version=1 filesCopiedToWebInfLib=gwt-servlet.jar -gwtCompileSettings=PGd3dC1jb21waWxlLXNldHRpbmdzPjxsb2ctbGV2ZWw+SU5GTzwvbG9nLWxldmVsPjxvdXRwdXQtc3R5bGU+T0JGVVNDQVRFRDwvb3V0cHV0LXN0eWxlPjxleHRyYS1hcmdzPjwhW0NEQVRBWy1zdHJpY3QgLW9wdGltaXplIDkgLWxvY2FsV29ya2VycyA2XV0+PC9leHRyYS1hcmdzPjx2bS1hcmdzPjwhW0NEQVRBWy1YbXgxMDI0bV1dPjwvdm0tYXJncz48ZW50cnktcG9pbnQtbW9kdWxlPmNvbS5iYWRsb2dpYy5nZHhpbnZhZGVycy5HZHhJbnZhZGVyc0d3dDwvZW50cnktcG9pbnQtbW9kdWxlPjwvZ3d0LWNvbXBpbGUtc2V0dGluZ3M+ +gwtCompileSettings=PGd3dC1jb21waWxlLXNldHRpbmdzPjxsb2ctbGV2ZWw+SU5GTzwvbG9nLWxldmVsPjxvdXRwdXQtc3R5bGU+T0JGVVNDQVRFRDwvb3V0cHV0LXN0eWxlPjxleHRyYS1hcmdzPjwhW0NEQVRBW11dPjwvZXh0cmEtYXJncz48dm0tYXJncz48IVtDREFUQVstWG14NTEybV1dPjwvdm0tYXJncz48ZW50cnktcG9pbnQtbW9kdWxlPmNvbS5iYWRsb2dpYy5nZHhpbnZhZGVycy5HZHhJbnZhZGVyc0d3dDwvZW50cnktcG9pbnQtbW9kdWxlPjwvZ3d0LWNvbXBpbGUtc2V0dGluZ3M+ diff --git a/gdx/src/com/badlogic/gdx.gwt.xml b/gdx/src/com/badlogic/gdx.gwt.xml index 33d937390..24974a5d7 100644 --- a/gdx/src/com/badlogic/gdx.gwt.xml +++ b/gdx/src/com/badlogic/gdx.gwt.xml @@ -4,6 +4,7 @@ + diff --git a/gdx/src/com/badlogic/gdx/graphics/g3d/materials/Material.java b/gdx/src/com/badlogic/gdx/graphics/g3d/materials/Material.java index 74d55944f..1936b2495 100644 --- a/gdx/src/com/badlogic/gdx/graphics/g3d/materials/Material.java +++ b/gdx/src/com/badlogic/gdx/graphics/g3d/materials/Material.java @@ -106,23 +106,23 @@ public class Material implements Iterable { return attributes.size; } - /** @return True if this material contains attribute of the specified type, false otherwise */ - public boolean hasAttribute(Class type) { - return indexOfAttribute(type) >= 0; - } - - /** @return The index of the first attribute of the specified type or -1 if not available */ - public int indexOfAttribute(Class 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 getAttribute(Class type) { - return (T)getAttribute(indexOfAttribute(type)); - } +// /** @return True if this material contains attribute of the specified type, false otherwise */ +// public boolean hasAttribute(Class type) { +// return indexOfAttribute(type) >= 0; +// } +// +// /** @return The index of the first attribute of the specified type or -1 if not available */ +// public int indexOfAttribute(Class 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 getAttribute(Class type) { +// return (T)getAttribute(indexOfAttribute(type)); +// } public Material copy () { Array attributes = new Array(this.attributes.size); -- 2.11.0