Advertisement

sdl surface fetching pixel values

Started by March 13, 2005 12:58 AM
2 comments, last by Rob Loach 19 years, 11 months ago
Hi, Could someone explain how to retrieve the pixel values out of an sdl_Surface? cheers, Scott
RTFM?

Click here for the Doc project, and scroll down and look for SDL_GetRGB. It might help, although i have never used it so i dont know. You probably could find some more on it with a bit more digging - i just skimmed descriptions.
gib.son
Advertisement
surface->pixels
Will return a pointer to the pixel data n'est pas?
getpixel()?
Rob Loach [Website] [Projects] [Contact]

This topic is closed to new replies.

Advertisement