From: Dimonax <dimonax@nospam.net>
Subject: Re: Programming graphic systems
Date: Fri, 24 Apr 2009 19:22:52 GMT
Date: 2009-04-24T19:22:52+00:00 [thread overview]
Message-ID: <gkoIl.15260$%54.14486@nlpi070.nbdc.sbc.com> (raw)
In-Reply-To: 49f03485$0$2849$ba620e4c@news.skynet.be
On Thu, 23 Apr 2009 11:27:59 +0200, Olivier Scalbert wrote:
> Hello,
>
> When playing with my GPS, I was thinking of the beautiful graphic
> systems used in safety critical environment (medical, aircraft, ATC,
> ...). I assume lots of them must be written in Ada. I was asking myself
> how are they programmed mainly at the graphic level. Does the
> application part use a graphic toolkit provided by the graphic board
> manufacturer or do you have to program all the graphic primitives
> yourself in Ada (as Bresenham line algorithm, ...) and written to the
> raster memory (which must be very cool!) ?
>
> Thanks for your info,
>
> Olivier
Actually if you know how to write callbacks to a C API with Ada, then
getting started isn't all that complicated. There are a few people even
in this newsgroup that have written small graphics engines on the OpenGL
API.
However if you plan to utilize tasking and such for your programs, you'll
need access to the technical documentation of your video hardware, since
OpenGL isn't multithreaded and DirectX is pretty much a black box when it
comes to serious graphics programming. You might find a graphics card
vendor who's drivers also include non-standard support for tasks and
threads, but it's unlikely.
Of course I'm referring to the common hardware your likely to find at
your local computer shop. The requirements for the big multimillion
dollar flight sims are going to be completely different.
I played with this a few years ago using a Matrox G400 video card and the
documentation which, at the time, was freely available. It can be done,
and done well, but it takes a lot of patience to get it running.
Also if your running on Linux, you'll find the half-in kernelspace half-
in userspace architecture infuriating(one reason I decided to write my
own driver.)
The best card to learn the ins and outs of this type of programming, with
any language(not just Ada) is one where the tech docs are open. Lately
ATI has been pretty fortcoming with thier tech docs, so I'd start with
them.
Freejack
prev parent reply other threads:[~2009-04-24 19:22 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-23 9:27 Programming graphic systems Olivier Scalbert
2009-04-23 11:54 ` Martin
2009-04-23 19:17 ` Paul Zacharzewski
2009-04-23 23:55 ` Samuel Tardieu
2009-04-27 1:54 ` Paul Zacharzewski
2009-04-23 21:01 ` nobody
2009-04-24 18:37 ` Olivier Scalbert
2009-04-23 21:31 ` Ludovic Brenta
2009-04-24 19:22 ` Dimonax [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox