LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: petarts on September 29, 2016, 18:36:09

Title: OpenCL problem, missing files? [Solved]
Post by: petarts on September 29, 2016, 18:36:09
hello, i started reading a tutorial on how to use openCL in LWJGL, but i found a problem when one of the classes that is used in the tutorial is missing, when i type "import org.lwjgl.opencl.CLPlatform" eclipse tells me "The import org.lwjgl.opencl.CLPlatform cannot be resolved" so here i am asking, does this not exist in the newer verions of LWJGL and thus is the tutorial outdated, or am i missing something like having to download some extra file

the class "org.lwjgl.opencl.CL" exists
this is the tutorial i'm reading:
http://wiki.lwjgl.org/wiki/OpenCL_in_LWJGL (http://wiki.lwjgl.org/wiki/OpenCL_in_LWJGL)
if anyone could tell me if i have done something wrong or if i need to do something differently it would be greatly appreciated
Title: Re: OpenCL problem, missing files?
Post by: spasi on September 29, 2016, 20:05:30
The wrapper classes in LWJGL 2 have been removed in LWJGL 3. See these demos (https://github.com/LWJGL/lwjgl3/tree/master/modules/core/src/test/java/org/lwjgl/demo/opencl) for code that works on LWJGL 3.
Title: Re: OpenCL problem, missing files?
Post by: petarts on September 29, 2016, 20:15:11
Thanks