-
Data structures and utility functions for C
This library contains various generic data structures and utility functions.
DEDS is used by DEGFX portable graphics library and
DEPUI portable gui library.
(../include/deds/deds.h)
(library deds : module deds)
-
A GPL portable graphics library
DEGFX is a small extremely portable graphics library. It has only 6 (!) platform dependant functions. It uses a clean
object oriented C API with reference counting and delete locking for (almost) all the objects. The library supports transparency for bitmaps and
all drawing functions and antialiased fonts. The user has very fast pixel level access to bitmaps using
iterators. DEGFX uses the DEDS library for data structures.
Compared to other portable graphics libraries DEGFX is:
- Smaller and simpler than Allegro or SDL
- Fast alpha-blending (transparency, anti-aliasing) built into all drawing functions
- Color conversions are completely hidden to the user
- More graphic functions (line, blit) than SDL
- More portable than SDL (doesn't need threads)
- Guaranteed flicker-free graphics without double buffering the entire display
- Library source is completly self-contained - You dont have to link to external libraries, not even to DEGFX!
- Easy to determine which modules (drivers, fonts etc...) are included in the executable
- Portable gui available (DEPUI)
DEGFX uses a different approach than most graphics libraries.
- DEGFX works works internally only a single pixel format chosen at compile time. This can be argb8888, rgb555 or rgb332
color encodings. This makes the library internally very simple. Bitmap are only converted to the screen color depth when
actually writing to the screen. This has the advantage
that the library internals are very simple and allows transparency and alpha-blending to be used even for monochrome,
4-bit and 8-bit displays. Admittedly a program that makes heavy use of antialiasing and transparency might not look very
good on a 4-bit display.
- DEGFX uses a buffer system to guarantee no screen flicker when drawing but uses much less memory than the usual method
of double buffering the entire screen. Only a portion of the screen is buffered at a time and the users
redraw callback function is called multiple times with different clipping settings. Because a clipped graphics drawing
can be made very fast, calling the update function many times is hardly slower than full screen double buffering but uses
much less memory. In fact the smaller buffer can often be faster than full screen double buffering because of better
cache behavior. In any case you can change how much memory you want to use for the screen buffer (even during runtime) so
you can do do full double buffering if you want to, or use minimal memory and (maybe) have a slightly slower screen update speed.
- DEGFX does not require linking to a library, you include the DEGFX C source code directly into you own programs.
So installing or removing DEGFX from your system is as simple as moving or deleting a directory from your
compilers include path. Using this method can cause long compile times since you are essentially compiling the library
every time you compile your program. But if you include DEGFX in a separate object file you can solve this problem.
- DEGFX uses #define flags to determine which modules to use. This guarantees that only the portions of DEGFX that you
actually use get included in your executable.
Some Features:
- Object oriented C API with attention to maximum type safety.
- Fast, unified transparency support
- Plot a solid blue pixel: mx_pixel(x, y, MXRGB(0,0,255));
- Same pixel with 50% transparency: mx_pixel(x, y, MXRGBT(0,0,255,128));
- RBG and RGBT colors are compile time macro for fast execution
- Transparency works for ALL displays even 8 bit and 4 bit graphic modes
- Unified reference counting for many objects
- Copying to screen is localized by buffer system so banked modes work almost as fast as linear modes
- Bitmap support:
- Pixel RGB colors are compile time constants
- Color conversions are completely hidden from user
- Unified transparency support
- Drawing functions: pixel, line, blit, etc...
- Drawing functions are simple and fast because only 32 bit ARGB is needed
- Very fast pixel-level access using iterators
- Functions to load bitmaps from files (PCX, TGA, GIF)
- Named colors (derived from X11 rgb.txt)
- Reference counting and delete locking
- Font support:
- Support for bitmapped fonts and antialiased fonts
- UTF-8 encoding
- Loadable from bitmap (similar format as Allegro)
- Allegro's TTF2PCX utility can be used to make loadable TTF fonts
- Reference counting and delete locking
- Simple mouse and keyboard support
- DEGFX source compiles inside your own source code
- Installing/removing the library means simply copying/deleting a directory in your compilers include path
- No need to use library tools
- Currently available drivers:
- DOS - DJGPP VESA 2.0(linear) and VESA 1.2(banked)
- DOS - DJGPP standard VGA (640x480x4)
- DOS - DJGPP VGA mode 13h (320x200x8)
- DOS - Borland Turbo C++ 3.1 using BGI graphics
- Linux - Svgalib *** has problems on some displays because
vga_setrgbcolor()
does not always function properly. ***
- Win32 - MINGW32 using GDI
- Win32 - Borlands free compiler BCC32 using GDI
- Win32 - Open Watcom target Win32 (GDI)
- Sinclair QL - QDOS *** in development ***
- Low memory requirements when using 'partial' double buffer
- Buffering mode can be changed on the fly
- Extremely portable: only 6 (!) platform dependant functions
- start, stop, poll, dirty, keypress, mouse info
- Runs on almost any hardware, even my 40 MHz 386 test machine
- Compiles with no changes on MSB first or LSB first hardware
- Open source and GPL licence
(../include/degfx/degfx.h)
(library degfx : module degfx)
-
A GPL portable gui library
Take a look at the [changelog]
[Page at Freshmeat]
Download [DEPUI 3.0 (stable)]
[DEPUI 3.3 (Work-in-progress)]
DEPUI is a small extremely portable user interface library. It uses an object oriented C API with reference counting for
many of the objects. The majority of DEPUI souce code is independant of the supporting graphics library, all
platform dependent functions are in a single file. DEPUI uses the
DEDS library for data structures and the
DETK library for assorted gui functions. For drawing on the screen
DEPUI can use several different libraries:
- DEGFX (tested on djgpp, mingw, Borland free compiler, Open Watcom, linux svgalib)
- Allegro (tested on DOS)
- MGRX (tested on djgpp, mingw, x11 and linux framebuffer)
- Borland Turbo C++ 3.1 DOS compiler using BGI graphics
Features:
- Clean object oriented C API
- Memory efficient and fast
- Extensive documentation using MXDOC 2.0,
Doxygen and GNU GLobal
- Themes and GFX mode changable at runtime
- Widgets:
- Text objects
- Editable text objects
- Buttons
- Horizontal and vertical sliders
- Scrollable area
- Lists with scrollbars if necessary
- Windows and window borders
- Child windows and modal windows
- Graphic mode/theme window
- File selector window
- Font selector window and run-time loadable fonts (depending on the platform)
- Objects can be transparent and can have any shape
- Library source is completly self-contained - You dont have to link to external libraries, not even to DEPUI!
- DEPUI uses #define flags to determine which modules to use. This guarantees that only the portions of DEPUI that you
actually use get included in your executable.
- All platform dependant code in a single file for platform/theme code
- Runs on almost any hardware, even my 40 MHz 386 test machine
- Compiles with no changes on MSB first or LSB first hardware
- Open source and GPL licence
(../include/depui/depui.h)
(library depui : module depui)
-
Basic gui toolkit functions
This library contains a number of data types and functions intended to be
useful for a portable gui library.
DETK uses DEDS library for generic data structures.
DETK is used by the DEPUI portable gui library.
(../include/detk/detk.h)
(library detk : module detk)