Re: [Plib-users] Using only PUI without GLUT
Brought to you by:
sjbaker
|
From: Sebastian U. <ud...@ha...> - 2002-04-24 13:27:09
|
On Wed, 24 Apr 2002, x_b...@ho... (Andrew Stewart) wrote: > Date: Wed, 24 Apr 2002 22:42:15 +1000 > To: <pli...@li...> > From: x_b...@ho... (Andrew Stewart) > Subject: [Plib-users] Using only PUI without GLUT > > hi all, > > i've been trawling the net now for sometime looking for a gui toolkit > which solely uses opengl calls to draw itself. I need to incorporate > this gui with OpenGL Performer on linux. PUI seems perfect for that. So > now i find out its part of Plib and thats fine but can i compile just the > PUI lib by itself without the other bits and piecs of Plib ? No - you will at least need FNT, SG and UL in addition to PUI. > i see that it depends on ul.h and fnt.h but if i remove those function calls from > all PUI source then it will work yes ? It won't. PUI relies on FNT for rendering of text and on UL for directory handling (file selector widget). > I really want to find a copy of PUI before it was incorporated into Plib > so all i have to do is remove those glut calls. What have PUI's inter-PLIB dependancies to do with GLUT ? What's the problem with them anyway ? Nevertheless, you *can* tell PUI not to depend on GLUT at compile time if you can live with some limitations. If compiled without GLUT, you will have to feed PUI with window dimensions and font textures for now; additionally, PUI currently won't allow you to spread user interface widgets across different windows of your application. For details, please see the PUI documentation (scroll down to the bottom of the document): http://plib.sourceforge.net/pui/ > Am i allowed to modify the source of PUI like that or is that illegal ? Surely you are allowed to do so (as long as you do not remove the copyright headers). Welcome in the world of the (L)GPL license ! > also, i see that the makefile compiles it into a .lib - can i just > include all the PUI files directly into my program source and compile it > like that or does that just defeat the purpose ? :) I don't see any reason why you would want to do so. Besides the fact that simply including all the C++ source files of PUI won't work, the latter consits of about 9500 lines of code - including that much text from each of your source files would slow down compilation of your application in a serious extent. And finally, what is wrong with the lib file ? If the PLIB libraries are statically linked into your application binary, it won't depend on the library files at runtime. - Sebastian |