SDL_bgi 2.2.4

SDL_bgi is a graphics library based on SDL2. SDL_bgi is nearly fully compatible with BGI (graphics.h), the Borland Graphics Interface that was the de-facto standard in PC graphics back in DOS days. It's very easy to use, pretty fast, and it also provides extensions for ARGB colours, mouse support, and turtle graphics. It should run on any platform supported by SDL2.

Tags c library graphics x11 sdl2
License Zlib
State stable

Recent Releases

2.2.416 Nov 2018 07:55 major bugfix: Added some graphics modes for better compatibility with old programs; fixed bug in setvisualpage(); minor fix in getch(); fix in putimage() bitwise operations; modified readimagefile() again (reported by Carlos Gustavo Ramirez Rodriguez); added test/kaleido.c; added savestate() and restorestate() in turtle.c; documentation updates and improvements.
2.2.318 Sep 2018 11:46 major feature: This release fixes a bug in setalpha() and provides a new implementation of readimagefile().
2.2.211 Sep 2018 08:29 major feature: In this release: documentation updates (clarification on colours); constants TMP_FG_COL, TMP_BG_COL, and TMP_FILL_COL added.
2.2.113 Aug 2018 08:41 major feature: In this release: renamed getch() to bgi_getch() and added the macro getch() to avoid Mingw bug; delay() rewritten to take care of key presses; fixed bug in BLUE_VALUE(), GREEN_VALUE(), RED_VALUE(), setalpha(); added ALPHA_VALUE(); added test/psychedelia.c; code revision and cleanup.
2.2.018 Jul 2018 12:14 major feature: In this release: support for multiple windows (extended initwindow(), added getcurrentwindow(), setcurrentwindow(), and closewindow()); added setwinoptions() for window title, position, and SDL flags; SDL_QUIT support in getch(), getevent(), kbhit(), xkbhit().
2.1.205 Jun 2018 10:20 minor feature: In this release: Dev-C++ support on Windows; documentation updates; code improvement in test programs.
2.1.128 May 2018 14:00 minor feature: This release adds Code::Blocks support on Windows.
2.1.002 Jan 2018 13:29 minor feature: This release adds CMake support for GNU/Linux and Makefile support for Windows (MSYS2 + mingw-w64) and Mac OS X.
2.0.815 Nov 2016 14:25 minor bugfix: This release fixes a minor bug in palette handling.
2.0.709 Nov 2016 12:52 minor bugfix: This release fixes a minor bug in event() and implements eventtype().
2.0.601 Mar 2016 07:06 minor bugfix: This release fixes a bug in writeimagefile(), implements clipping in readimagefile(), extends turtle graphics, and improves the documentation.
2.0.523 Dec 2015 09:03 minor bugfix: This release implements fill patterns in fillpoly() and fixes a minor bug in getch(). SDL_bgi is now functionally complete.
2.0.402 Dec 2015 10:56 minor bugfix: This release improves the functions ellipse() and kbhit(), and adds xkbhit(). Graphics is now implemented using an array of SDL_Surfaces instead of system RAM.
2.0.328 Sep 2015 07:32 major feature: This release provides minimal dos.h and conio.h, fixes minor issues with kbhit(), and implements screen refreshes in kbhit() and getch() for improved compatibility with old programs.
2.0.203 Jun 2015 12:38 major feature: This release implements fill patterns, setfillpattern(), getfillpattern(), and writeimagefile(). The documentation was updated.
2.0.112 May 2015 07:01 major feature: This release implements line patterns and floodfill() improvements. The documentation was updated.
2.0.007 May 2015 10:13 major feature: This release has been rewritten to use SDL2 only (no more SDL_gfx dependency). Some minor enhancements were also implemented.
1.0.111 Dec 2014 08:25 major bugfix: This release fixes some bugs in putpixel(), getimage(), putimage(), and kbhit().
1.0.007 Nov 2014 10:29 major feature: This is the initial release of SDL_bgi.