
On 14/10/2007, Andrew Coppin
Jon Harrop wrote:
On Sunday 14 October 2007 13:31:56 Andrew Coppin wrote:
PS. I've investigated existing APIs and I'm not seeing anything that looks useful. Lots of support for drawing lines and arcs and so on, but not for plotting individual pixels.
I highly recommend OpenGL. Even if you are just filling texture maps for now, you have a future proof way to do far more sophisticated graphics.
...just... the irony of using OpenGL to write a software ray tracer. ;-)
Oh, and the irony of using OpenGL (an API of unimaginable complexity) just to write pixels to the screen. Isn't that kind of like using a thermonuclear device to crack a nut?
OpenGL is used as a pixel-plotting mechanism relatively often. You wouldn't be doing anything new if you did it that way. I say someone binds SDL[1]. (If it hasn't been done already.) - Jeremy [1] - http://libsdl.org