Table of contents
About FAG/GFX
FAG/GFX is a portable and optimized graphical library for 1-bit framebuffers and a set of applications developed for the library. All the source code is available under a BSD-style license.The library can be run on real framebuffers (and is optimized to do so) or on virtual framebuffers (such as a window on a desktop operating system). It support both off-screen and on-screen surfaces, blitting, boolean operations and clipping rectangles.
To test the library in modern desktop operating systems, a LibSDL output layer is provided.
The following example applications are included in the environment:
- Puzzle, a version of the fifteen puzzle.
- Mahjong Solitaire, a simple version of the popular solitaire tile matching game. It has no bells and whistles. It has the basic features, such as alerting when no more moves are possible.
- Digital Logic, a simple digital logic simulation program in which various digital gates can be placed on the board and wires can be used to connect components, which can be used to construct a digital system.
It supports a LED gate to display the digital value of a wire, SWITCH and GND gates to set the value of a wire, basic digital gates (AND, OR, NOT, NOR, etc.), a CLOCK gate which generates a square-wave synchronization signal, a JK flip-flop etc.
More gates can be added easily in the source file. - Other utilities such as a simple icon editor or a font sampler.
Download
- FAG 2.5.1 source code [TAR.GZ] [ZIP]. Latest version. Published May 15th 2008.
- FAG 2.5 source code [TAR.GZ] [ZIP].
- FAG 2.4 source code. BSD license. Includes Mahjong Solitaire, LibSDL output layer and a specific layer (macbsd). Published September 6, 2007. Fixes bugs in 2.3.x and new features.
- FAG 2.3.1 source code. BSD license. Includes Mahjong Solitaire 2.0.1, LibSDL output layer and a specific layer (macbsd). Published September 6, 2007. Fixes bug in 2.3 that caused failure on little-endian machines.
- FAG 2.3.1 Mac OS X Universal Binary. Statically-linked with LibSDL 1.2, so works out-of-the-box in Intel and PowerPC Macs.
- FAG 2.3 source code. BSD license. Includes Mahjong Solitaire 2.0, LibSDL output layer and a specific layer (macbsd). Published September 5, 2007.
- FAG 2.2 source code. BSD license. Includes Mahjong Solitaire 1.2, LibSDL output layer and a specific layer (macbsd). Published September 1, 2007.
- FAG 2.1.1 source code. Includes a LibSDL-based output module and the Mahjong Solitaire 1.2 sample application. Written in ANSI/ISO C, open source license. Published August 31th 2007.
UPDATE: Please replace
sdl-config --flagsin the Makefile withsdl-config --cflagsto get a correct LibSDL compilation.
Screenshot