Pixels in SDL

Dear List,

I’m very new to SDL (installed it today) but not to programming.
I’m using C/C++ on Linux.

I’ve searched hard for a tutorial that could show me how to draw a
single pixel over a surface/image so I can loop it’s position,
but couldn’t find anything. The idea
is to have a fundamental and basic animation/graphics loop. I plan to draw
mathematical curves and equations from scratch. Can anybody
point me in the right direction? I’ll be grateful…

thanks,
------- -.-
1/f ))) --.
------- …
http://www.algomantra.com

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

You have examples of pixel reading/writing functions here:
http://www.libsdl.org/cgi/docwiki.cgi/Pixel_Access

Edgar

AlgoMantra wrote:

Dear List,

I’m very new to SDL (installed it today) but not to programming.
I’m using C/C++ on Linux.

I’ve searched hard for a tutorial that could show me how to draw a
single pixel over a surface/image so I can loop it’s position,
but couldn’t find anything. The idea
is to have a fundamental and basic animation/graphics loop. I plan to draw
mathematical curves and equations from scratch. Can anybody
point me in the right direction? I’ll be grateful…

thanks,
------- -.-
1/f ))) --.
------- …
http://www.algomantra.com



SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkj0MvoACgkQolm4VNX3QTwoDwCcDR/RbpPuqAfwUc8VbohqGs8F
AnMAoO/LqW1mQFd5QX/+/vcJj4lF8lwI
=SPEL
-----END PGP SIGNATURE-----

You have examples of pixel reading/writing functions here:
http://www.libsdl.org/cgi/docwiki.cgi/Pixel_Access

Edgar

Thanks-a-lot, Edgar!

------- -.-
1/f ))) --.
------- …
http://www.algomantra.com