delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/20/19:30:59

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Where is graphics.h ????
Date: Fri, 21 Nov 1997 18:39:44 +0000
Organization: Two pounds of chaos and a pinch of salt
Lines: 46
Message-ID: <3475D570.52FC@cs.com>
References: <651nou$ss5 AT news DOT fe DOT up DOT pt>
Reply-To: fighteer AT cs DOT com
NNTP-Posting-Host: ppp239.cs.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Antonio Fernandes wrote:
> 
>  want to do a program that uses graphics functions such as line
> or curcle but i don't have the include file graphics.h
> Does anyone know where it is?
> 
> Is there another way to implement graphics functions ?

There are many ways.  You are evidently a student of the Borland family
of compilers, and have never had the opportunity to step out into the
real world, where there are many different kinds of compilers, for many
different kinds of computers, and all of them have different ways to do
graphics.  In fact, this is probably the single most compiler-specific
type of programming in existence.

DJGPP has a graphics library named GRX, which is designed to resemble
Borland's BGI interface.  If you are comfortable with Borland, this is
the best way to go, especially with the bcc2grx package that allows you
to directly port BGI code.

If you are willing to learn new methods of graphics programming, you
should try out Allegro, a dynamic 2D/3D graphics/game programming
library for DJGPP that is undergoing heavy development.  It is highly
recommended by many DJGPP users.

Each of the packages I've mentioned can be found in the 'v2tk'
subdirectory of any SimTel DJGPP mirror.

Finally, you are probably used to doing graphics on a 16-bit real-mode
architecture, which is _completely_ and _totally_ different under 32-bit
protected mode.  The DJGPP Frequently Asked Questions list
(v2/faq210b.zip from SimTel or online at http://www.delorie.com/djgpp/)
discusses the pitfalls and advantages of converting to 32-bit code in
chapters 10, 17, and 18.  There is also an excellent graphics tutorial,
as well as many other resources for the aspiring DJGPP games programmer,
at http://www.rt66.com/~brennan/djgpp/.

hth

-- 
---------------------------------------------------------------------
|      John M. Aldrich       |"A competent and self-confident person|
|       aka Fighteer I       | is incapable of jealousy in anything.|
|   mailto:fighteer AT cs DOT com   | Jealousy is invariably a symptom of  |
| http://www.cs.com/fighteer | neurotic insecurity."  - Lazarus Long|
---------------------------------------------------------------------

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019