Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
switch_default_blendmode(3)	 Arcan Lua API	   switch_default_blendmode(3)

NAME
       switch_default_blendmode	- Change the blend operation set as default on
       all new objects.

SYNOPSIS
       nil
       switch_default_blendmode( int:mode )

DESCRIPTION
       Due  to	legacy and scripts dependent on	now known buggy	behaviour, the
       default blending	mode is	set to BLEND_FORCE . This means	 that  regard-
       less of object opacity, everything will be drawn	with blending enabled.
       This might be less performant on	some GPU s when	compared to the	option
       of disabling blending for objects that are fully	opaque and have	no al-
       pha channel, which is refered to	as BLEND_NORMAL	. This function	can be
       used  to	 indicate  that	 the script knows about	the distinction	or has
       other blending needs where a lot	of force_image_blend	calls  can  be
       avoided by changing the default to some other mode.

NOTES
       1      Specifying  an invalid value for mode  is	a terminal state tran-
	      sition.

EXAMPLE
       function	switch_default_blendmode0()
	     switch_default_blendmode(BLEND_NORMAL)
       end

SEE ALSO:
vidsys				  April	2025	   switch_default_blendmode(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=switch_default_blendmode&sektion=3&manpath=FreeBSD+Ports+14.3.quarterly>

home | help