Login  Register

JOCL 'edge' branch: llb binding ..

Posted by Sven Gothel on May 30, 2011; 12:33am
URL: https://forum.jogamp.org/JOCL-edge-branch-llb-binding-tp3000435.html

Using multiple low level classes w/ a verbose suffix 'Binding'
separating the CL API is IMHO too much.
Especially since those llb classes are in the public namespace.

A simpler approach IMHO would be to use JOGL's public API interfaces
and to leave out some of the CL API methods if desired, hooking 'em up w/
public manual methods which use those 'llb' ones.

This would remove the public llb package and keep it all in one place
ie
  com.jogamp.*.CLContext public API interface and
  jogamp.*.CLContextImpl private implementation

Now we have 'CLContext' and 'CLContextBinding' in public,
where the latter maybe be useful for the public .. or not.

A one stop for a CL context might be easier and reduce confusion.

~Sven