From: Bernie P. <bj...@cs...> - 2004-10-11 09:41:43
|
Hi wxHaskell people, I have a little ray-tracer in Haskell. An image is produced as a stream of pixel intensities. I want to use wxHaskell to write a display facilty that will render each pixel as it is generated by the tracer (so we can see the image being generated pixel by pixel). My current thoughts are to create a panel and have it render a bitmap on paint events. The bitmap is implemented via "varCreate" and so on. The idea is to update the bitmap and periodically repaint the panel. Before I commit to this approach I thought it would be wise to ask for advice in case there is a more idiomatic way to do it. Cheers, Bernie. |