Drawing different per-pixel data on the screen

Posted by Amir Eldor on Game Development See other posts from Game Development or by Amir Eldor
Published on 2013-06-11T00:40:46Z Indexed on 2013/11/08 22:19 UTC
Read the original article Hit count: 278

Filed under:
|

I want to draw different per-pixel data on the screen, where each pixel has a specific value according to my needs. An example may be a random noise pattern where each pixel is randomly generated.

I'm not sure what is the correct and fastest way to do this. Locking a texture/surface and manipulating the raw pixel data? How is this done in modern graphics programming?

I'm currently trying to do this in Pygame but realized I will face the same problem if I go for C/SDL or OpenGL/DirectX.

© Game Development or respective owner

Related posts about Performance

Related posts about pixel