summaryrefslogtreecommitdiffstats
path: root/src/com/jogamp/opencl/JOCLJNILibLoader.java
blob: 5e2eae3716706fd7b92017e18e42008f40100470 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package com.jogamp.opencl;

import com.jogamp.common.jvm.JNILibLoaderBase;
import com.jogamp.common.os.NativeLibrary;


/**
 * Responsible for JOCL lib loading.
 * @author Michael Bien
 */
class JOCLJNILibLoader extends JNILibLoaderBase {

    /**
     * Loads the native binding and returns the OpenCL library for dynamic linking.
     * @return Returns libOpenCL represented as NativeLibrary.
     */
    static NativeLibrary loadOpenCL() {
        loadLibrary("jocl", null, false);
        return NativeLibrary.open("OpenCL", JOCLJNILibLoader.class.getClassLoader());
    }
}