The dynamic GGI library (LibGGI) is a flexible interface library for drawing.
It provides an opaque interface to the display's acceleration functions, and has been designed such that porting to other display types (X, Win32, etc) is easy.
The code is still alpha, so expect things to break overnight...
It has been designed after having a look at several existing libraries and so far we have found porting to be quite simple from most of them.
Expect these feature to follow:
In the libggi directory, do:
$ ./configure # will be done automatically on first make $ make $ su -c "make install"For some demos of libggi code, see the demos subdirectory which has several programs showing around the features of LibGGI.
The most importent of them is demo.c which we use ourselves for checking new features and speed.c which is a speed- and consistency-test application which can be used, if you changed something in LibGGI to see if you have broken anything.
To use libggi, you will need:
LibGGI consists of a stub-lib (libggi.so) and a multitude of dynamic drivers. The dynamic libraries are selected from a `display' dynamic library, such as display-kgi or display-X. The display dynamic library then load the dynamic libs needed for the requested mode, taking hints from the graphics device if necessary.
It is thus no problem at all to add new modes or targets to GGI. All you need is to build a new DLL which will be loaded as necessary.