PDA

View Full Version : easiest graphics with c++



zak
06-07-2011, 11:56
this is called "WINBGIM Library"
just copy the attached files ( graphics.h, libbgi.a) to include, Lib folders of your MingW and from dos prompt write something like this:
g++ shapes.cpp -lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32 -o shapes.exe

always use -lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32 in this order.
a complete list of 106 functions (with examples) here:
http://www.cs.colorado.edu/~main/cs1300-old/cs1300/doc/bgi/index.html
7327


some history:
in the old old days there was Borland Graphics Interface (BGI), to be used by turbo c/c++ products. and after many years someone make an emulator for that graphics driver called BGI for Windows (WinBGI) you can download it from here:
http://www.garret.ru/lang.html
the author make his driver shareware.
in 2004 someone in colorado univ make another BGI emulator he depends on the previous WinBGI, but added more functions and modernized it more, and make it freeware, it is called:
"The WINBGIM Library -- Version 6.0 -- August 9, 2004
Borland BGI Graphics and Mouse For Windows Applications
it is here:
http://www.cs.colorado.edu/~main/cs1300-old/cs1300/doc/bgi/bgi.html
the links to graphics.h and libbgi.a are broken and i have salvaged it from web.archive.org, and it is part of a computer science tools (used for edu ) called cs1300.zip (58 MB) available for free download from http://www.cs.colorado.edu/~main/cs1300-old/cs1300/README.html
the functions documentation here:
http://www.cs.colorado.edu/~main/cs1300-old/cs1300/doc/bgi/index.html