From 8a876cce10aa358ff041a95e5a7a173dc6be3e52 Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Sat, 19 Sep 2009 04:34:39 +0200 Subject: introduced CLGLI interface for OpenCL-OpenGL Interoperability --- resources/OpenCL.cfg | 24 ++++++------------------ resources/OpenCLGL.cfg | 15 --------------- resources/cl-common.cfg | 17 +++++++++++++++++ resources/clgl-if.cfg | 18 ++++++++++++++++++ 4 files changed, 41 insertions(+), 33 deletions(-) delete mode 100644 resources/OpenCLGL.cfg create mode 100644 resources/cl-common.cfg create mode 100644 resources/clgl-if.cfg (limited to 'resources') diff --git a/resources/OpenCL.cfg b/resources/OpenCL.cfg index 9ac199c1..5cf23c88 100644 --- a/resources/OpenCL.cfg +++ b/resources/OpenCL.cfg @@ -1,10 +1,12 @@ +Include cl-common.cfg + Package com.mbien.opencl Style InterfaceAndImpl #imports for all generated java files Import com.mbien.opencl.* -Import java.nio.* +#Import java.nio.* ClassJavadoc CL /** ClassJavadoc CL * Java bindings to OpenCL, the Open Computing Language. @@ -12,24 +14,10 @@ ClassJavadoc CL * @autor Michael Bien ClassJavadoc CL */ JavaClass CL -JavaOutputDir gensrc/java -NativeOutputDir gensrc/native - -#map pointers to long as internal representation -Opaque long cl_context -Opaque long cl_device_type -Opaque long cl_command_queue -Opaque long cl_mem -Opaque long cl_program -Opaque long cl_kernel -Opaque long cl_event -Opaque long cl_sampler - -# TODO doublecheck if not int -Opaque long cl_platform_id -Opaque long cl_device_id +ImplJavaClass CLImpl +Implements CLImpl CLGLI #append to generated c files CustomCCode #include CustomCCode #include -CustomCCode #include +CustomCCode #include \ No newline at end of file diff --git a/resources/OpenCLGL.cfg b/resources/OpenCLGL.cfg deleted file mode 100644 index 451df609..00000000 --- a/resources/OpenCLGL.cfg +++ /dev/null @@ -1,15 +0,0 @@ -Include OpenCL.cfg - -Package com.mbien.opencl.gl - -#imports for all generated java files -Import com.mbien.opencl.* -Import com.mbien.opencl.gl* -Import java.nio.* - -ClassJavadoc CL /** -ClassJavadoc CL * OpenGL - OpenCL interoperability. -ClassJavadoc CL * @autor Michael Bien -ClassJavadoc CL */ -JavaClass CLGL - diff --git a/resources/cl-common.cfg b/resources/cl-common.cfg new file mode 100644 index 00000000..bcdf7ee9 --- /dev/null +++ b/resources/cl-common.cfg @@ -0,0 +1,17 @@ +JavaOutputDir gensrc/java +NativeOutputDir gensrc/native + +#map pointers to long as internal representation +Opaque long cl_context +Opaque long cl_device_type +Opaque long cl_command_queue +Opaque long cl_mem +Opaque long cl_program +Opaque long cl_kernel +Opaque long cl_event +Opaque long cl_sampler + +# TODO doublecheck if not int +Opaque long cl_platform_id +Opaque long cl_device_id + diff --git a/resources/clgl-if.cfg b/resources/clgl-if.cfg new file mode 100644 index 00000000..771e39f6 --- /dev/null +++ b/resources/clgl-if.cfg @@ -0,0 +1,18 @@ +Include cl-common.cfg + +Package com.mbien.opencl + +Style InterfaceOnly + +ClassJavadoc CLGLI /** +ClassJavadoc CLGLI * Java bindings to OpenCL, the Open Computing Language. +ClassJavadoc CLGLI * OpenGL - OpenCL interoperability. +ClassJavadoc CLGLI * @autor Michael Bien +ClassJavadoc CLGLI */ +JavaClass CLGLI + +#only include token starting with CL_GL_ and methods containing GL +IgnoreNot CL_GL_.*|cl.*GL.* + +#append to generated c files +#CustomCCode #include -- cgit v1.2.3