All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.badlogic.gdx.utils.SharedLibraryLoaderEmu Maven / Gradle / Ivy

There is a newer version: 1.0.4
Show newest version
package com.badlogic.gdx.utils;

import com.badlogic.gdx.Gdx;
import com.github.xpenatan.gdx.backends.teavm.assetloader.AssetLoaderListener;
import com.github.xpenatan.gdx.backends.teavm.TeaApplication;
import com.github.xpenatan.gdx.backends.teavm.gen.Emulate;
import com.github.xpenatan.gdx.backends.teavm.assetloader.AssetLoader;

@Emulate(SharedLibraryLoader.class)
public class SharedLibraryLoaderEmu {

    public void load (String libraryName) {
        TeaApplication app = (TeaApplication)Gdx.app;
        AssetLoader.AssetLoad assetLoader = AssetLoader.getInstance();
        assetLoader.loadScript(false, libraryName + ".js", new AssetLoaderListener<>() {
            @Override
            public void onSuccess(String url, String result) {
            }

            @Override
            public void onFailure(String url) {
            }
        });
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy