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:
    • 'none
    • 'blend
    • 'add
    • 'mod
  • 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.