GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
switch_default_blendmode(3) Arcan Lua API switch_default_blendmode(3)

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

nil
switch_default_blendmode( int:mode )

Due to legacy and scripts dependent on now known buggy behaviour, the default blending mode is set to BLEND_FORCE . This means that regardless 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 alpha 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.

1
Specifying an invalid value for mode is a terminal state transition.

function switch_default_blendmode0()
      switch_default_blendmode(BLEND_NORMAL)
end

June 2022 vidsys

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.