func_graphics_max2d_setblend.rst 861 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. .. _func_graphics_max2d_setblend:
  2. ========
  3. SetBlend
  4. ========
  5. SetBlend -
  6. Description
  7. ===========
  8. .. code-block:: blitzmax
  9. SetBlend( blend )
  10. Set current blend mode
  11. SetBlend controls how pixels are combined with existing pixels in the back buffer when drawing
  12. commands are used in BlitzMax.
  13. @blend should be one of:
  14. [ @{Blend mode} | @Effect
  15. * MASKBLEND | Pixels are drawn only if their alpha component is greater than .5
  16. * SOLIDBLEND | Pixels overwrite existing backbuffer pixels
  17. * ALPHABLEND | Pixels are alpha blended with existing backbuffer pixels
  18. * LIGHTBLEND | Pixel colors are added to backbuffer pixel colors, giving a 'lighting' effect
  19. * SHADEBLEND | Pixel colors are multiplied with backbuffer pixel colors, giving a 'shading' effect
  20. ]
  21. Parameters
  22. ==========
  23. Return Values
  24. =============
  25. Nothing.
  26. Examples
  27. ========
  28. See Also
  29. ========