Reply – Re: HelloJOCL Problems on MacOSX
Your Name
or Cancel
In Reply To
Re: HelloJOCL Problems on MacOSX
— by Michael Bien Michael Bien
  right. The enums reside usually in the same namespace as the class
where they are associated with. This makes them look a little bit to
long from time to time.

you can easily get rid of that by using static imports (Java 5 and
later), for example:

import static com.jogamp.opencl.CLDevice.Type.*;
import static com.jogamp.opencl.util.CLPlatformFilters.*;


thats what i did in the code snippet of the last mail, just a little bit
less radical as above.


On 02/10/2011 12:26 AM, ralphrmartin [via jogamp] wrote:

> Just a quick remark for anyone else who is following this: I needed to write
> the below to get it to compile:
> CLPlatform.getDefault(CLPlatformFilters.type(CLDevice.Type.GPU))
> _______________________________________________
> If you reply to this email, your message will be added to the discussion below:
> To start a new topic under jogamp, email [hidden email]
> To unsubscribe from jogamp, visit