From: Sven G. <sgo...@ja...> - 2002-04-25 04:12:09
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday 25 April 2002 05:04, Kenneth B. Russell wrote: > > i would like to add NIO Buffer usage for all > > kind of arrays (for the 1.4 libs only, of course ;-) > > > > e.g. (just added them to the manual glu part): > > > > public final native void gluTessVertex ( long tess, DoubleBuffer > > location, Buffer data) ; > > > > we force usage of the DoubleBuffer type, so the user MUST > > create a DoubleBuffer of a ByteBuffer via a view ! > > This sounds like a good idea. I was thinking about adding this > (in particular, to expose some more of the NVidia extensions > which take float* instead of void*) so we (or I ;-) have to: 1.) check the manual functions - guess i _just_ did it ;-) 2.) add typed Buffer (FloatBuffer, ...) support within C2J for typed arrays .. > but got hung up because some > of the more interesting extensions require wgl or glX to be > exposed to Java via some portability layer. For most routines the > presence of the additional overloads will probably be helpful. > as we allready discussed and as you allready pushed we might create a new layer, which wraps all glx/wgl/.. functions. such a layer therefore wraps the OpenGL / OS-Specific stuff may be we can call it gl4java.GLOSFunc e.g: gl4java.GLOSFunc.GetProcAddress #ifdef _X11_ glXGetProcAddress #elif _WIN32_ wglGetProcAddress and so on .. BUT ONLY FOR SUCH FUNCTION, which are mention and spec at the ARB, so they are avaiable on "all" plattforms: Unices/X11 (glx), Win32 (wgl), MacOSX (???) cheers, sven - -- health & wealth mailto:sgo...@ja... www : http://www.jausoft.com ; pgp: http://www.jausoft.com/gpg/ voice : +49-521-2399440 ; fax : +49-521-2399442 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8x3u2HdOA30NoFAARAjz8AJ9zpYaschvmxib0P4AEeRb67DQ3XACguKP1 caNF+WBHUV0zKFeazrpv8w8= =kotj -----END PGP SIGNATURE----- |