Mail Archives: djgpp/1997/10/20/22:17:25
BORET S. wrote:
>
> 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 ...)
All the world is not Borland, nor should you assume so. DJGPP has
several graphics libraries which offer equivalent or better graphics
performance than the outdated Borland Graphics Interface. You can try
GRX, which is fairly similar to BGI, or you can go all out and get
Allegro, a complete graphics/sound/game programming library. Both are
available from the same place you got DJGPP.
Code written for Borland can be ported to DJGPP using the bccgrx20.zip
package; this allows most BGI code to work with GRX. It resides in the
same place as GRX.
hth
--
---------------------------------------------------------------------
| John M. Aldrich | "Sin lies only in hurting other |
| aka Fighteer I | people unnecessarily. All other |
| mailto:fighteer AT cs DOT com | 'sins' are invented nonsense." |
| http://www.cs.com/fighteer | - Lazarus Long |
---------------------------------------------------------------------
- Raw text -