Re: HelloJOCL Problems on MacOSX
Posted by
Michael Bien on
Feb 09, 2011; 11:41pm
URL: https://forum.jogamp.org/HelloJOCL-Problems-on-MacOSX-tp2456996p2462570.html
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: