From: Sven G. <sgo...@ja...> - 2000-08-31 18:16:20
|
aNt wrote: > > > Subject: [gl4java-usergroup] MAC PORT > > > > MAC PORT (MacOS 9.0 PPC) > > ======================== > > > > I got it :-) ! > > I have created a shared library, > > which is installed as an extension ... > > It works. > > nice one, huray :) > > > Now I have still the problem, how I can query the functions (pointers) > > of the OpenGL functions, located within the OpenGL shared library ! > > they all should be in the apple sdk for opengl: > http://www.apple.com/opengl/ > > should all be there. > Nono. The problem is, that I DYNAMICALLY fetch the function pointer out of the GL library, for all GL functions. This is done, because not all GL functions are implemented in some implementations ! So, there are no more dummy nope functions, and no more DLL's for special GL implementations ! For Windows, I use: wglGetProcAddress if not succesfull, I use: LoadLibrary GetProcAddress FreeLibrary For Unix, I use: dlopen dlsym dlclose if on of the following exist (queried by mechanism above), I will use: glXGetProcAddress, or glXGetProcAddressARB, or glXGetProcAddressEXT otherwise, using the dlsym mechanism above ! So - how is it done for the MAC ? Yours, Sven -- mailto:sgo...@ja... www : http://www.jausoft.com ; pgp: http://www.jausoft.com/gpg/ voice : +49-521-2399440, +49-170-2115963; fax: +49-521-2399442 |