Package tripleplay.flump.BinaryFlumpLoader

Examples of tripleplay.flump.BinaryFlumpLoader.ImageLoader


    {
        final Library[] libs = new Library[]{null};
        decodeLibrary(json, baseDir, new Callback<Library>() {
            public void onSuccess (Library result) {libs[0] = result;}
            public void onFailure(Throwable cause) {}
        }, new ImageLoader() {
            @Override public Image load (String path) {
                return assets.getImageSync(path);
            }
        });
        return libs[0];
View Full Code Here


     * Decodes and returns a library asynchronously.
     */
    protected static void decodeLibraryAsync (Json.Object json, final Assets assets, String baseDir,
                                              Callback<Library> callback)
    {
        decodeLibrary(json, baseDir, callback, new ImageLoader() {
            @Override public Image load (String path) {
                return assets.getImage(path);
            }
        });
    }
View Full Code Here

TOP

Related Classes of tripleplay.flump.BinaryFlumpLoader.ImageLoader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.