Norm Dresner
2004-11-02 08:09:57 UTC
I'm a very experienced (real-time) C programmer in a variety of OS with a
few sophisticated user-space C++ programs under my belt as well in Windows
including several moderately complex graphics programs, but I've never
written a single X window graphics program of any sort.
I have a need to write a single X-window graphics program which constructs a
rectangular pixel array on the screen and internally assigns each pixel to
an element of a memory array. It then needs to monitor the contents of this
array by changing the colors of the associated pixels on the screen. If the
array size were small, I'd do this with (n)curses and characters but the
array is 32K and there aren't that many character positions available on any
reasonable shell window. While this might sound like a real-time
application, it's really very soft real-time with a (nominal) 1 Hz update
rate.
Ideally I'd like to find some sample code that operates on a pixel-by-pixel
basis and writes pixels of arbitrary color to random places on the screen.
Any pointers (URL's or book references) appreciated.
TIA
Norm
few sophisticated user-space C++ programs under my belt as well in Windows
including several moderately complex graphics programs, but I've never
written a single X window graphics program of any sort.
I have a need to write a single X-window graphics program which constructs a
rectangular pixel array on the screen and internally assigns each pixel to
an element of a memory array. It then needs to monitor the contents of this
array by changing the colors of the associated pixels on the screen. If the
array size were small, I'd do this with (n)curses and characters but the
array is 32K and there aren't that many character positions available on any
reasonable shell window. While this might sound like a real-time
application, it's really very soft real-time with a (nominal) 1 Hz update
rate.
Ideally I'd like to find some sample code that operates on a pixel-by-pixel
basis and writes pixels of arbitrary color to random places on the screen.
Any pointers (URL's or book references) appreciated.
TIA
Norm