*1- [pascal]Originally Posted by Loodziek
SDL_SetColorKey(surface, // surface is the surface that want to set a transparent color
SDL_RLEACCEL or SDL_SRCCOLORKEY,
SDL_MapRGB(surface.format, r, g, b)); // this color will be transparent[/pascal]
*2-
I don't know i use a few lines of code and a SDL_delay to do it, but in (VRY SLOW) pcs the game will run at diferent speed ;/
sorry me weak english too ;p
im from brazil and you ?
Bookmarks