Drawing 24 bit pixel with SDL
Hi there
I'm trying to make a bmp file viewer but having difficulties of drawing 24 bit pxels in linux.
I'm currently using SDL. I have succeded reading the bitmap data and store it in
Red Green Blue each 1 byte long data structure.
How do i draw the 24 bit pixel using SDL?
What is pitch and how do you use it in SDL ?
Thanks in advance
|