package com.akjava.gwt.three.client.extras.loaders;

import com.akjava.gwt.three.client.gwt.collada.ColladaData;
import com.google.gwt.core.client.JavaScriptObject;

public class ColladaLoader extends JavaScriptObject{

	protected ColladaLoader(){}
	
	
	public final native void load(String path,ColladaLoadHandler handler)/*-{
	this.load(path,function ( collada ) {
		handler.@com.akjava.gwt.three.client.extras.loaders.ColladaLoader$ColladaLoadHandler::colladaReady(Lcom/akjava/gwt/three/client/gwt/collada/ColladaData;)(collada);
		});
	
	}-*/;
	
	public static interface ColladaLoadHandler {
		public void colladaReady(ColladaData collada);
	}
}

package com.akjava.gwt.three.client.extras.loaders;

import com.akjava.gwt.three.client.gwt.collada.ColladaData;
import com.google.gwt.core.client.JavaScriptObject;

public class ColladaLoader extends JavaScriptObject{

	/*
	 * dont workd on r46,only work on dev
	 */
	protected ColladaLoader(){}
	
	
	public final native void load(String path,ColladaLoadHandler handler)/*-{
	this.load(path,function ( collada ) {
		handler.@com.akjava.gwt.three.client.extras.loaders.ColladaLoader$ColladaLoadHandler::colladaReady(Lcom/akjava/gwt/three/client/gwt/collada/ColladaData;)(collada);
		});
	
	}-*/;
	
	public static interface ColladaLoadHandler {
		public void colladaReady(ColladaData collada);
	}
}

improve collada loader