Mail Archives: djgpp/1997/10/19/23:29:00
At 09:30 10/19/1997 GMT, BORET S. wrote:
>
> Hello !
>
>I have to write a C program for my studie. Then I must write it with
>Borland C and with DJGPP too (at home) but how can I do to use graphics
>just as if I was using Borland environnement ???
>For instance, with Borland C, I think it is possible to write #include
><graphics.h> in order to draw a pixel with the "putpixel()" function. But
>RHIDE explains to me that graphics.h doesn't exists and it produces an
>error. (that is the same thing with putpixel ...)
There is a library called BCC2GRX which acts as a shim between Borland's BGI
graphics and the LIBGRX graphics package for DJGPP. (both in v2tk) With
that, and a few #ifdef's, you can program all your graphics like BGI. Also,
I think you can use LIBGRX from Borland C also, but its API is IMHO
extremely complicated.
Nate Eldredge
eldredge AT ap DOT net
- Raw text -