From 0ac4a12fb74de16f41ee9ad46e917b45523bbac4 Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Wed, 23 Sep 2009 01:32:54 +0200 Subject: splitted binding in core (CL) and CL-GL interop. (CLGLI) began with custom impl. for functions with c -> java callbacks added an utility which uncomments function parameter names in headers --- resources/clImplCustomCode.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 resources/clImplCustomCode.java (limited to 'resources/clImplCustomCode.java') diff --git a/resources/clImplCustomCode.java b/resources/clImplCustomCode.java new file mode 100644 index 00000000..7b69330b --- /dev/null +++ b/resources/clImplCustomCode.java @@ -0,0 +1,13 @@ + + public long clCreateContext(IntBuffer properties, int arg1, long[] devices, CreateContextCallback cb, Object userData, IntBuffer errcode_ret) { + return this.clCreateContext0(properties, arg1, devices, cb, null, errcode_ret); + } + + public native long clCreateContext0(IntBuffer properties, int arg1, long[] devices, CreateContextCallback cb, Object userData, IntBuffer errcode_ret); + + public long clCreateContextFromType(IntBuffer arg0, long device_type, CreateContextCallback pfn_notify, Object userData, IntBuffer errcode_ret) { + return this.clCreateContextFromType0(arg0, device_type, pfn_notify, null, errcode_ret); + } + + public native long clCreateContextFromType0(IntBuffer arg0, long device_type, Object pfn_notify, Object userData, IntBuffer errcode_ret); + \ No newline at end of file -- cgit v1.2.3