chickadee » sdl2 » surface-blend-mode-set!

surface-blend-mode surfaceprocedure
surface-blend-mode-raw surfaceprocedure
set! (surface-blend-mode surface) modesetter
surface-blend-mode-set! surface modesetter

See SDL_GetSurfaceBlendMode and SDL_SetSurfaceBlendMode.

  • surface-blend-mode returns a blend mode symbol for built-in modes, or an integer for custom blend modes created with compose-custom-blend-mode.
  • surface-blend-mode-raw returns an integer.
  • The setters accept either a symbol or integer.

These procedures signal an exception of kind (exn sdl2) if an error occurs.