Top Description Inners Constructors Methods
org.lwjgl.opencl

public abstract Class CLContextCallback

extends Callback
implements CLContextCallbackI
Class Inheritance
All Implemented Interfaces
org.lwjgl.opencl.CLContextCallbackI, org.lwjgl.system.CallbackI, org.lwjgl.system.Pointer
Known Direct Subclasses
org.lwjgl.opencl.CLContextCallback.Container
Imports
javax.annotation.*, org.lwjgl.system.*

Instances of this class may be passed to the CreateContext and CreateContextFromType methods.

Type


void (*invoke) (
    cl_char const *errinfo,
    void const *private_info,
    size_t cb,
    void *user_data
)

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
protected
pack-priv
CLContextCallback(long functionPointer)

Method Summary

Modifier and TypeMethod and Description
public static CLContextCallback

Returns:

the new CLContextCallback
create
(long functionPointer)

Creates a CLContextCallback instance from the specified function pointer.

public static CLContextCallback
create(CLContextCallbackI instance)

Creates a CLContextCallback instance that delegates to the specified CLContextCallbackI instance.

public static CLContextCallback
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

CLContextCallbackback to summary
protected CLContextCallback()
CLContextCallbackback to summary
pack-priv CLContextCallback(long functionPointer)

Method Detail

createback to summary
public static CLContextCallback create(long functionPointer)

Creates a CLContextCallback instance from the specified function pointer.

Returns:CLContextCallback

the new CLContextCallback

createback to summary
public static CLContextCallback create(CLContextCallbackI instance)

Creates a CLContextCallback instance that delegates to the specified CLContextCallbackI instance.

createSafeback to summary
public static CLContextCallback createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Annotations
@Nullable
org.lwjgl.opencl back to summary

private final Class CLContextCallback.Container

extends CLContextCallback
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final CLContextCallbackI

Constructor Summary

AccessConstructor and Description
pack-priv
Container(long functionPointer, CLContextCallbackI delegate)

Method Summary

Modifier and TypeMethod and Description
public void
invoke(long
a pointer to the message string representation
errinfo
,
long
a pointer to binary data that is returned by the OpenCL implementation that can be used to log additional information helpful in debugging the error
private_info
,
long
the number of bytes in the private_info pointer
cb
,
long
the user-specified value that was passed when calling CreateContext or CreateContextFromType
user_data
)

Implements org.lwjgl.opencl.CLContextCallbackI.invoke.

Will be called when a debug message is generated.
Inherited from org.lwjgl.opencl.CLContextCallback:
createcreatecreateSafe

Field Detail

delegateback to summary
private final CLContextCallbackI delegate

Constructor Detail

Containerback to summary
pack-priv Container(long functionPointer, CLContextCallbackI delegate)

Method Detail

invokeback to summary
public void invoke(long errinfo, long private_info, long cb, long user_data)

Implements org.lwjgl.opencl.CLContextCallbackI.invoke.

Doc from org.lwjgl.opencl.CLContextCallbackI.invoke.

Will be called when a debug message is generated.

Parameters
errinfo:long

a pointer to the message string representation

private_info:long

a pointer to binary data that is returned by the OpenCL implementation that can be used to log additional information helpful in debugging the error

cb:long

the number of bytes in the private_info pointer

user_data:long

the user-specified value that was passed when calling CreateContext or CreateContextFromType

Annotations
@Override