Top Description Fields Constructors Methods
org.lwjgl.opencl

public final Class CL

extends Object
Class Inheritance
Imports
org.lwjgl.LWJGLException, .LWJGLUtil, .MemoryUtil, .Sys, java.nio.ByteBuffer

LWJGL users must use this class to initialize OpenCL before using any other class in the org.lwjgl.opencl package.
Author
Spasi

Field Summary

Modifier and TypeField and Description
private static boolean

Constructor Summary

AccessConstructor and Description
private
CL()

Method Summary

Modifier and TypeMethod and Description
public static void
public static void
pack-priv static long

Returns:

the function pointer address
getFunctionAddress
(String[]
the function name aliases.
aliases
)

Helper method to get a pointer to a named function with aliases in the OpenCL library.

pack-priv static long
getFunctionAddress(String name)

Helper method to get a pointer to a named function in the OpenCL library.

pack-priv static native ByteBuffer
getHostBuffer(final long address, final int size)

public static boolean

Returns:

true if CL has been created
isCreated
()

private static native void
nCreate(String
Array of strings containing paths to search for OpenCL library
oclPaths
)

Native method to create CL instance

private static native void
nCreateDefault()

Native method to create CL instance from the Mac OS X 10.4 OpenCL framework.

private static native void
nDestroy()

Native method the destroy the CL

private static native long
private static native void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

createdback to summary
private static boolean created

Constructor Detail

CLback to summary
private CL()

Method Detail

createback to summary
public static void create() throws LWJGLException
destroyback to summary
public static void destroy()
getFunctionAddressback to summary
pack-priv static long getFunctionAddress(String[] aliases)

Helper method to get a pointer to a named function with aliases in the OpenCL library.

Parameters
aliases:String[]

the function name aliases.

Returns:long

the function pointer address

getFunctionAddressback to summary
pack-priv static long getFunctionAddress(String name)

Helper method to get a pointer to a named function in the OpenCL library.

getHostBufferback to summary
pack-priv static native ByteBuffer getHostBuffer(final long address, final int size)
isCreatedback to summary
public static boolean isCreated()
Returns:boolean

true if CL has been created

nCreateback to summary
private static native void nCreate(String oclPaths) throws LWJGLException

Native method to create CL instance

Parameters
oclPaths:String

Array of strings containing paths to search for OpenCL library

nCreateDefaultback to summary
private static native void nCreateDefault() throws LWJGLException

Native method to create CL instance from the Mac OS X 10.4 OpenCL framework. It is only defined in the Mac OS X native library.

nDestroyback to summary
private static native void nDestroy()

Native method the destroy the CL

ngetFunctionAddressback to summary
private static native long ngetFunctionAddress(long name)
resetNativeStubsback to summary
private static native void resetNativeStubs(Class<T> clazz)