Hi, can somebody tell me how I can determine if the
image that I’ve loaded into an SDL_Surface is
greyscale or not. My intention is to load color images
into OpenGL using GL_RGBA and use something else for
greyscale (such as GL_LUMINANCE_ALPHA).
Thanks__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
And Suface->w and Surface->h tells the size of the image.
-MarkOn Fri, 12 Dec 2003, Eric Wing wrote:
Hi, can somebody tell me how I can determine if the
image that I’ve loaded into an SDL_Surface is
greyscale or not. My intention is to load color images
into OpenGL using GL_RGBA and use something else for
greyscale (such as GL_LUMINANCE_ALPHA).