Do I need to:
-
use SDL_MapRGB to get the color that I want to not be drawn?
-
use SDL_SetColorKey to set that color in the SDL_Surface?
-
blit the SDL_Surface?
Is this how I would setup a specific color to not be drawn when I blit an SDL_Surface?
To follow the path:
look to the master,
follow the master,
walk with the master,
see through the master,
become the master.---------------------------------
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing
Hudson T. Clark wrote:
Do I need to:
-
use SDL_MapRGB to get the color that I want to not be drawn?
-
use SDL_SetColorKey to set that color in the SDL_Surface?
-
blit the SDL_Surface?
Is this how I would setup a specific color to not be drawn when I blit an SDL_Surface?
Yes.
Why do you ask? Have you tried and it didn’t work?–
Milan Babuskov
http://njam.sourceforge.net
No I just wanted to make sure before I started using it! I was at school between finals at the time and I thought what the heck I would just double check. Thanks.
Milan Babuskov wrote:Hudson T. Clark wrote:
Do I need to:
-
use SDL_MapRGB to get the color that I want to not be drawn?
-
use SDL_SetColorKey to set that color in the SDL_Surface?
-
blit the SDL_Surface?
Is this how I would setup a specific color to not be drawn when I blit an SDL_Surface?
Yes.
Why do you ask? Have you tried and it didn’t work?–
Milan Babuskov
http://njam.sourceforge.net
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl
To follow the path:
look to the master,
follow the master,
walk with the master,
see through the master,
become the master.
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing