comp.lang.ada
 help / color / mirror / Atom feed
From: dirk@feles.cs.kuleuven.be. (Dirk Craeynest)
Subject: Re: Best way to put an array-based pixmap on a screen?
Date: Sun, 26 Mar 2017 09:35:11 -0000 (UTC)
Date: 2017-03-26T09:35:11+00:00	[thread overview]
Message-ID: <ob820f$c8l$1@dont-email.me> (raw)
In-Reply-To: cc019e12-33d8-4e05-910e-f9fc7f42fa06@googlegroups.com

In article <cc019e12-33d8-4e05-910e-f9fc7f42fa06@googlegroups.com>,
LaeMing Ai  <laeming@exemail.com.au> wrote:
>[...] I want to set up a shim between my Ada environment and my Linux
>Desktop to facilitate monitoring my output, without having to mess
>about with the daunting (I quickly found) task of interfacing to SDL
>or GTK+!
>
>All I really want to see from my code's perspective is a 2D array of
>32-bit pixel values that I can manipulate from my developing Ada code,
>and not have to worry about the intricacies of window managers. [...]

You might want to take a look at the code Ludovic Brenta provided for
his series of presentations in several Ada Developer Rooms at past
FOSDEM events.  He used a minimal Ada interface to the xcb-library
to do exactly that, i.e. to display a 2D array of pixel values on
the screen.

For more info, see:

Ada DevRoom @ FOSDEM 2013
Ada Tasking: Multithreading Made Easy
<https://www.cs.kuleuven.be/~dirk/ada-belgium/events/13/130203-fosdem.html#multithreading>

Ada DevRoom @ FOSDEM 2014
Ada Task Pools: Multithreading Made Easy
<https://www.cs.kuleuven.be/~dirk/ada-belgium/events/14/140201-fosdem.html#multithreading>
video registration:
<http://ftp.belnet.be/FOSDEM/2014/K4601/Saturday/Ada_Task_Pools_Multithreading_Made_Easy.webm>

Ada DevRoom @ FOSDEM 2015
Multithreading Made Easy, part 3 - Bounded Work Queues
<https://www.cs.kuleuven.be/~dirk/ada-belgium/events/15/150131-fosdem.html#multithreading>
video registration (very low sound level):
<https://ftp.heanet.ie/mirrors/fosdem-video/2015/devroom-ada/multithreading__CAM_ONLY.mp4>
source distribution (latest version):
<https://www.cs.kuleuven.be/~dirk/ada-belgium/events/15/150131-fosdem/06-ada-multithreading.tgz>

HTH

Dirk
Dirk.Craeynest@cs.kuleuven.be (for Ada-Belgium/Ada-Europe/SIGAda/WG9)

*** 22nd Intl.Conf.on Reliable Software Technologies - Ada-Europe'2017
*** June 12-16, 2017 *** Vienna, Austria *** http://www.ada-europe.org


      parent reply	other threads:[~2017-03-26  9:35 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-26  1:01 Best way to put an array-based pixmap on a screen? LaeMing Ai
2017-03-26  8:25 ` Dmitry A. Kazakov
2017-03-26  9:55   ` Simon Wright
2017-03-26 13:27     ` reinert
2017-03-26 16:48       ` gautier_niouzes
2017-03-26 19:10   ` Lucretia
2017-03-26 19:13     ` Lucretia
2017-03-26 21:00   ` BartC
2017-03-26 21:48     ` Dmitry A. Kazakov
2017-03-26  9:35 ` Dirk Craeynest [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