Difference between revisions of "DxGetBlendMode"
Jump to navigation
Jump to search
Line 17: | Line 17: | ||
==Example== | ==Example== | ||
− | |||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
addCommandHandler("myBlendMode", function() | addCommandHandler("myBlendMode", function() | ||
Line 23: | Line 22: | ||
end) | end) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | |||
==Requirements== | ==Requirements== |
Latest revision as of 21:02, 5 April 2020
![]() |
Script Example Missing Function DxGetBlendMode needs a script example, help out by writing one. |
Before submitting check out Editing Guidelines Script Examples. |
This function returns the current blend mode for the dxDraw functions. The blend mode is set using dxSetBlendMode
Syntax
string dxGetBlendMode ( )
Returns
Returns the current blend mode, which can be one of:
- blend
- add
- modulate_add
- overwrite
Example
addCommandHandler("myBlendMode", function() outputChatBox( dxGetBlendMode() ) end)
Requirements
Minimum supported server | n/a |
---|---|
Minimum supported client | 1.3.0-9.03782 |
Note: Using this function/event requires the resource to have the above minimum version declared in the meta.xml <min_mta_version> section. e.g. <min_mta_version client="1.3.0-9.03782" />
See Also
- dxConvertPixels
- dxCreateFont
- dxCreateRenderTarget
- dxCreateScreenSource
- dxCreateShader
- dxCreateTexture
- dxDrawCircle
- dxDrawImage
- dxDrawImageSection
- dxDrawLine
- dxDrawLine3D
- dxDrawMaterialLine3D
- dxDrawMaterialPrimitive
- dxDrawMaterialPrimitive3D
- dxDrawMaterialSectionLine3D
- dxDrawPrimitive
- dxDrawPrimitive3D
- dxDrawRectangle
- dxDrawText