GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||
GeezerVison is showing en.wikipedia.org — Borland Graphics Interface - Wikipedia
Borland Graphics Interface, also known as BGI, is a graphics library that was bundled with several Pascal and C++ compilers for MS-DOS sold by Borland. It first shipped with version 4 of Turbo Pascal in 1987. BGI was also used to provide graphics for many other Borland products including the Quattro Pro spreadsheet. BGI was designed for 2D presentation graphics. The library loaded graphic drivers ( The last Borland's C++ IDE for MS-DOS is Borland C++ 3.1 (1992). The last C++ environment which supports BGI is Borland C++ 5.02 (1997), which works under Windows but can compile DOS programs. BGI was accessible in C/C++ with Third-party BGI driversGiven the popularity of Borland compilers, a few independent software developers produced BGI drivers for non-standard video modes, advanced video cards, plotters, printers, and graphics file output.[1] In 1994 Jordan Hargraphix Software released SVGA BGI drivers version 5.5 that are compatible with some SVGA hardware like ATI or Cirrus Logic cards and VESA VBE-compatible cards. Also there are tweaked VGA drivers for non-standard graphic modes supported by VGA by writing directly into its registers, protected mode driver versions for Turbo Pascal 7.0 and mouse driver (actually cursor handler for unsupported video modes by standard mouse drivers). These drivers were shareware and buying them let receiving their source code and technical support; now they are no longer supported, but on 19 December 2020 Jordan Hargrave kindly released source code under the MIT License on GitHub.[2] Main bugs are lack of aligning bytes support in VESA true-color modes (so the true-color driver is not suitable for Nvidia graphic cards) and video memory bank switching bug in mouse driver (since real mode addressing space is 1 megabyte, but some video modes require up to 4 megabytes of memory, it is split into 64 kilobyte banks). LegacyA BGI-compatible library, named ExampleThe following program, written for Turbo C, initialises the graphics and draws 1000 random lines: #include <graphics.h> #include <conio.h> #include <stdlib.h> int main (int argc, char *argv[]) { int i, gd = DETECT, gm; initgraph(&gd, &gm, ""); setbkcolor(BLACK); cleardevice(); outtextxy(0, 0, "Drawing 1000 lines..."); for (i = 0; i < 1000; i++) { setcolor(1 + random(15)); line(random(getmaxx()), random(getmaxy()), random(getmaxx()), random(getmaxy())); } getch(); closegraph(); return 0; } See alsoReferences
External links
| ||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. | ||||||||||||