PLIB

From FlightGear wiki
Revision as of 12:42, 31 August 2014 by Philosopher (talk | contribs) (Library GPL -> Lesser GPL ;-), note on Canvas' eventual replacement (soon!) of PUI)
Jump to navigation Jump to search

PLIB (Portable Game Library) is a set of software libraries for writing games written by Steve J. Baker. FlightGear has used PLIB for most of its development. It is also used by the FlightGear related program Atlas. PLIB is open source and released under Lesser GNU Public License (LGPL).

FlightGear 1.0.0 (released in 2007) was the last public release to use PLIB for the 3d scene graph, before the the transition to OpenSceneGraph (OSG). FlightGear still uses PLIB for various tasks, for example reading joystick inputs and showing a graphical user interface (GUI). In the latter usage, the PUI component of PLIB will be replaced in FlightGear with Canvas 2D rendering subsystem and Nasal scripting to improve the GUI beyond what PUI offers.

PLIB is needed when building FlightGear.

PLIB libraries

  • Picoscopic User Interface Library (PUI)
  • Sound Library (SL)
  • Standard Geometry Library(SG)
  • Simple Scene Graph Library (SSG)
  • PUI Auxiliary Library (PUAUX)
  • SSG Auxiliary Library (SSGA)
  • Joystick wrappers (JS)
  • Fonts'n'Text Library (FNT)
  • Utility Library (UL)
  • Pegasus Network Library (NET)
  • PLIB Scripting Language (PSL)
  • PLIB Windowing Library (PW)

Recommended version

Even if version 1.8.5, shipped with most of the GNU/Linux distributions, does work for FlightGear and related software, it is recommended to use the latest source from its SVN repo:

svn co https://plib.svn.sourceforge.net/svnroot/plib/trunk plib
cd plib
sed s/PLIB_TINY_VERSION\ \ 5/PLIB_TINY_VERSION\ \ 6/ -i src/util/ul.h

Link