Re: [Plib-users] Is PLIB 'compatible' with Open Inventor and Qt?
Brought to you by:
sjbaker
|
From: Sebastian U. <ud...@ha...> - 2002-05-09 15:09:01
|
On Wed, 08 May 2002, sh...@pt... (Mark H. Shirley) wrote: > Date: Wed, 08 May 2002 23:51:54 -0700 > To: pli...@li... > From: sh...@pt... (Mark H. Shirley) > CC: sh...@em... > Subject: [Plib-users] Is PLIB 'compatible' with Open Inventor and Qt? > > I'm trying to figure out whether PLIB will help in an application > I'm working on. The application is built on Open Inventor and Qt. > Is PLIB compatible with those choices? > > I particularly want the fonts and text library but could make good > use of sound, the joystick, and PUI libraries. I've downloaded PLIB > and the examples and compiled them under windows, and everything > worked very nicely. The examples depended on GLUT, but I'm > uncertain the degree to which PLIB itself also depends upon it. The sound and joystick libraries can be used with almost every application. The FNT library just requires an working OpenGL context. The PUI library requires that you construct your OpenGL windows with GLUT by default. This is a rather complicated issue. There is, however, a recently often-discussed hack that allows you to use PUI independently of GLUT. For details, scroll down to the bottom of the PUI documentation at http://plib.sourceforge.net/pui/. All you have to do is basically to compile PUI with the preprocessor macro PU_NOT_USING_GLUT defined and you must define this macro just before including "pu.h" from your application. Furthermore, you must ensure that three font texture files are present in the current directory at runtime with the GLUT-less PUI and feed PUI with window dimensions through puSetWindowSize () as said in the documentation. Additionally, note that you can not spread PUI widgets across multiple windows if PUI was compiled with the non-GLUT hack enabled. I hope I could help you, - Sebastian |