comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@bix.com (Tom Moran)
Subject: Re: Graphics in ADA
Date: 1999/03/03
Date: 1999-03-03T00:00:00+00:00	[thread overview]
Message-ID: <36dcb334.33950576@news.pacbell.net> (raw)
In-Reply-To: 350D2.6016$sv1.12204700@firenze.visi.net

>Does anyone know how to implement VGA graphics in ADA?
In 16 bit DOS, 32 bit DOS, Windows xxx? Try
http://stad.dsl.nl/~jvandyk
>access the graphics memory of the computer. But, alas, I also cannot find
>any information on how to access memory locations in ADA.
You need an address representation clause, eg,
  CRT : array(0 .. 479, 0 .. 639) of Pixels;
  for CRT'address use (segment=>16#A000#, offset=>0);
(This address clause is from memory for 16 bit DOS, Other OSes have
different memory structures, of course.)  There's also the little
matter of doing IO operations to the graphics card, which will involve
calling something like Output(Port=>16#3F8#, Value=>16#81#), depending
on what your compiler vendor has supplied in the library, or doing
calls to the BIOS, again dependent on your vendor supplied library.
If you actually need 16 bit DOS routines, and have access to
Compuserve (now part of AOL), look in the VESA section - there's a
(very old) Ada 83 driver and example programs.  If you are running on
Windows, the whole style of graphics is different.
  





  reply	other threads:[~1999-03-03  0:00 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-03  0:00 Graphics in ADA William E. Huttemann Jr.
1999-03-03  0:00 ` Tom Moran [this message]
1999-03-03  0:00 ` Jerry van Dijk
1999-03-03  0:00 ` Gautier
1999-03-03  0:00 ` Jon Hough
1999-03-03  0:00 ` John English
  -- strict thread matches above, loose matches on Subject: below --
2003-10-07 20:03 graphics in ada Andrew
2003-10-07 20:17 ` chris
2003-10-07 20:15   ` Andrew
2003-10-07 22:20     ` Ed Falis
2003-10-10 17:12       ` David Holm
2003-10-08  1:21 ` Jeff C,
2003-10-08  2:08   ` tmoran
2003-10-08  1:22 ` Marin David Condic
2003-10-08  4:30 ` Steve
2003-10-08  5:19 ` Jeffrey Carter
2003-10-09 17:50 ` Patrice Freydiere
2001-10-24 10:07 graphics in ADA Phosphorus
2001-10-24 11:38 ` Preben Randhol
2001-10-26 10:51   ` garilla
2001-10-26 11:40     ` Preben Randhol
2001-10-26 14:19       ` Ted Dennison
2001-10-24 19:54 ` tmoran
1999-02-18  0:00 graphics in ada Gautier
1999-02-17  0:00 Dizon L.
1999-02-17  0:00 ` David Botton
1999-02-17  0:00 ` nabbasi
1999-02-17  0:00   ` nabbasi
1999-02-17  0:00 ` Tom Moran
1999-02-18  0:00   ` robert_dewar
1999-02-18  0:00     ` Ed Falis
1999-02-18  0:00     ` Tom Moran
1999-02-18  0:00 ` Ehud Lamm
1999-02-18  0:00   ` mike
1999-02-18  0:00     ` robert_dewar
1999-02-19  0:00       ` Tom Moran
1999-02-18  0:00 ` Corey Minyard
1998-04-11  0:00 Graphics in Ada tmoran
1998-04-10  0:00 d97sund
1998-04-12  0:00 ` Jerry van Dijk
1998-04-17  0:00 ` Dr. Joachim Schroeer
1998-04-17  0:00 ` Jean-Claude MAHIEUX
1998-04-19  0:00   ` Michael F Brenner
1994-10-16  4:07 Graphics in ada tmoran
1994-10-15 11:42 Dr Snow
1994-10-16  5:50 ` Dr Snow
1994-10-16  5:50 ` Michael M. Bishop
1990-11-10  4:58 Graphics in Ada Oliver Mullarney
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox