Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Authentication-Warning: eos.vss.fsi.com: ford owned process doing -bs Date: Wed, 1 Oct 2003 11:02:09 -0500 (CDT) From: Brian Ford X-X-Sender: ford AT eos To: cygwin AT cygwin DOT com Subject: Re: Future of OpenGL package (Earnie, please read this) Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Andre Bleau wrote: >Igor Pechtchanski wrote: > >>Andre Bleau wrote: >> >>>Even, with 1.4 headers, you would sill need to jump through hoops to use >>>1.4 functionality. You will still need to load the functions dynamicaly >>>before using them. You wouldn't be able to simply call the functions as >>>when developing for UNIX. >>> >>Cygwin DLL uses the autoload functionality for some of the required >>functions, so that they can simply be called after a test (i.e., >>something like >> >>if (hasSomeFunction()) >> callSomeFunction(); >> >>Perhaps this could be employed in the OpenGL library layer as well... I >>don't know enough off-hand about the autoloading process, but there is a >>fairly detailed description in winsup/cygwin/how-autoload-works.txt in >>the Cygwin sources. Might be worth investigating... >> >Well, that's exactly what packages like extgl provide: an easier way to >test if some functionality is available, and if it is, to load it and use >it. > >I was thinking of including extgl in the next major release of the OpenGL >package. > >However, porting UNIX program that uses GL 1.2+ functions would still be >a pain, although a somewhat lower pain. Say you have a UNIX program with a >line like this: > I think you missed the point here. On UNIX, a test is already required to check the OpenGL version or if the extension is supported; assuming the application programmer "did the right thing." So, no new tests are required. And, Igor's suggested method is completely dynamic and transparent, just like UNIX. extgl requires code modifications, all be it simple ones. What am I missing? >>> - Have GLUI and GLUIX libs compiled for gcc 3.3 >>> >>You will probably also need to release the old libraries as >>compatibility packages for those who still use the pre-gcc-3.3 OpenGL >>binaries. >> >So, you suggest that I provide: >libglui.a and libgluix.a for the last version of gcclibglui-gcc3_2.a and >libgluix-gcc3_2.a for gcc 3.2 >libglui-gcc2_95.a and libgluix-gcc2_95.a for gcc 2.95 >??? >None would be bigger than 500k, so the package would still be manageable. > No. I think that would only be necessary if they were DLLs. I think Igor was confused. Notice that he said "pre-gcc-3.3 OpenGL binaries" not "pre-gcc-3.3 compilers." >After the long silence that followed my last posting to cygwin-apps about >these issues, it's good to receive some feedback. Thanks Igor and Brian. > I hope my feedback is still useful, not frustrating. I have a bad and unintentional habit of being too argumentative here or something. Thanks. -- Brian Ford Senior Realtime Software Engineer VITAL - Visual Simulation Systems FlightSafety International Phone: 314-551-8460 Fax: 314-551-8444 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/