Reply – Re: HelloJOCL Problems on MacOSX
Your Name
Subject
Message
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.*;
...

CLPlatform.getDefault(type(GPU));

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

-michael

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:
> http://jogamp.762907.n3.nabble.com/HelloJOCL-Problems-on-MacOSX-tp2456996p2462497.html
> To start a new topic under jogamp, email [hidden email]
> To unsubscribe from jogamp, visit
http://michael-bien.com/