PLIB libraries & examples Download


A portable, LGPL game development library.

The contents of PLIB are:

  • GUI Widgets - A fully portable GUI interface that needs only OpenGL and C++.
  • Sound/Music Replay - A fully portable Audio driver suited to C++, GLUT and realtime applications that need low latency.
  • Matrix/Vector math - A set of matrix and vector math functions that was specifically written to simplify the writing of efficient OpenGL programs. You need to include this code into any SSG applications.
  • Scene Graph - A scene graph library layered on top of OpenGL.
  • Joystick - Supports more Joysticks with more axes and buttons than GLUT.
  • Fonts/Text - Supports text output in OpenGL using texture mapped fonts. These are much faster to render than GLUT's fonts.
  • Utilities - A simple portability library to hide basic operating system incompatibilities. UL is still in very early development.
  • Scene Graph Auxiliary - Additional functionality layered onto SSG - not every SSG program will need these but they can perhaps save you some effort.
  • C-like Scripting language - an efficient script execution environment that's designed to allow more control of the scripts execution by the application.
  • A simple windowing library.
These components work identically under all flavors of Win32 (WinNT, Win95 and Win98), MacOS, OS-X, BeOS, Haiku, Linux, BSD and a number of other UNIX systems.

One major feature of PLIB is it's lack of external dependancies. Games can depend solely on PLIB and OpenGL - which make installation very much easier for you end-users.


* To INSTALL, unzip it to /boot folder.

* Requires at least Haiku r37903

* Rudolf 3D drivers, for a best fps

* Music, Joystick (missing in Haiku) and renderer are not implemented

* A Tic-Tac-Toe demo game is included

* The examples are builded with gcc4, but the sources are included

If you're using vesa, please try the awesome MESA RENDERER WITH WITH SSE SUPPORT ENABLED, by Nikos V (aka tunestone57)



* big *THANKS* to phoudoin for the new GLUT functions!!!

Submitted On:
07 Aug 2010
Submitted By:
Michael Vinícius de Oliveira (michaelvoliveira)
File Size:
6,795.71 Kb
File Version:
File Author:
Michael Vinícius de Oliveira
File HomePage:
Click to visit site
Total Votes:1


+2 # RE: PLIB libraries & examplesmichaelvoliveira 2010-08-07 11:59

Ahh.!! Speed-Dreams almost works out of the box :P

it builds, links, runs, but don't show any menus...

maybe is some UI control on PLIB that are not rendering well with our Mesa Renderer...

with a little of help, in a couple of days, we could get running:

* Speed-Dreams
* FlightGear
* TuxKart

and much more!
+3 # RE: RE: PLIB libraries & examplessparklewind 2010-08-07 13:44
Really awesome, thank you. I look forward to seeing TuxKart in Haiku.

How do you compile all these apps? I think you said somewhere that you are not a programmer. I am not a programmer either so I would like to know how you manage to do this. Most apps fail to compile, with fatal errors, for me.
+2 # RE: RE: RE: PLIB libraries & examplesmichaelvoliveira 2010-08-07 15:39
Hi sparklewind :D

for a tri faster install without problems, do the following:

download and install haikuporter:
svn co http://ports.haiku-files.org/svn/haikuporter
cd haikuporter
cd trunk

and wait a bit, and click ok in the popup that will appear.
go to Haikuporter PLIB ticket
and download both .patch and .bep file

create a new folder in /boot/develop/haikuporter/media-libs/ "plib"
and put the .bep file there and the .patch file inside a "patches" subfolder

It's time to install the lib! do:
haikuporter -i plib

and wait for an automatic download, extract, configure and installation ;)

Please note that works both GCC2 and GCC4

Building the examples, is very easy too:

download the examples pack from plib webpage, and do:
libtoolize --force --copy --install
autoreconf -i
./configure --prefix=/boot/common

Yes, I'm not a coder, but a few adjustments to the code builds is not problem for me. But create something new with Be API is beyond my skills..

If you could contribute with the port, with more patches, will be very appreciated :P
+1 # RE: RE: PLIB libraries & examplesmichaelvoliveira 2010-08-08 13:11
I'm proud to annunce that Speed-Dreams runs on Haiku now!!

Soon I'll release a binary for download (and get patience, to upload 470MB here)
+2 # RE: RE: RE: PLIB libraries & examplesstreakx 2010-08-08 14:14
[quote name="michaelvoliveira"]I'm proud to annunce that Speed-Dreams runs on Haiku now!!

minimal requirements for a game? Will it run on +900Mhz CPU and 1GB ram?
+1 # RE: RE: RE: RE: PLIB libraries & examplesmichaelvoliveira 2010-08-08 15:48
Yes, but is not playable. my Sempron LE-1100 1.9 + 2GBddr2 using Vesa driver (with ATI Radeon HD 2600 pro) + tunestone7's Mesa Render with SSE enabled got 10 fps at 640*480

Not tested with onboard GeForce 6100 (using rudolfc driver)
+1 # RE: RE: RE: RE: RE: PLIB libraries & examplestonestone57 2010-08-08 18:31
Yes, 3D games with Software Renderer are not playable - too slow frame rates. A faster CPU help somewhat, should give 15-20 fps @ 640x480 but really need hardware accelerated 3D.

Better to forget about 3D games/emulators on haiku for now.

Best to play with SDL games/emulators and online games instead. Like ikariam, cool javascript game but missing an end goal.
+1 # another screenshotmichaelvoliveira 2010-08-07 12:00

Please help! join in Haikuports!
+2 # RE: PLIB libraries & examplesstreakx 2010-08-07 12:09
nice, very nice..

Please register to post comments

Search Files

Search For: 
Search File Titles: 
Search File Descriptions: 

The Largest BeOS/Haiku Software Repository