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

com.github.maeda6uiui.mechtatel.natives.macos.MttNativeLoader Maven / Gradle / Ivy

There is a newer version: 0.0.1-alpha3
Show newest version
package com.github.maeda6uiui.mechtatel.natives.macos;

import com.github.maeda6uiui.mechtatel.natives.IMttNativeLoader;
import com.jme3.system.NativeLibraryLoader;

import java.io.File;
import java.util.Objects;

/**
 * Loads native libraries for macOS
 *
 * @author maeda6uiui
 */
public class MttNativeLoader implements IMttNativeLoader {
    @Override
    public void loadLibbulletjme() {
        NativeLibraryLoader.loadLibbulletjme(
                true,
                new File(Objects.requireNonNull(MttNativeLoader.class.getResource("/Bin")).getFile()),
                "Release",
                "Sp"
        );
    }

    @Override
    public void loadShaderc() {
        String shadercLibFilepath = Objects.requireNonNull(
                MttNativeLoader.class.getResource("/Bin/libshaderc_shared.dylib")).getFile();
        System.load(shadercLibFilepath);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy