22 int blendModeResult = SDL_SetSurfaceBlendMode (surface, SDL_BLENDMODE_BLEND);
23 if (blendModeResult != 0)
24 return blendModeResult;
26 return SDL_SetSurfaceAlphaMod(surface, alpha);
28 return SDL_SetSurfaceAlphaMod(surface, SDL_ALPHA_OPAQUE);
GLclampf GLclampf GLclampf alpha
int SDL_SetAlpha(SDL_Surface *surface, Uint32 flag, Uint8 alpha)
Compatibility layer for using SDL 1.2 and 2.0.