DxGetBlendMode: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 17: | Line 17: | ||
==Example== | ==Example== | ||
<section name="Client" class="client" show="true"> | |||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
addCommandHandler("myBlendMode", function() | |||
outputChatBox( dxGetBlendMode() ) | |||
end) | |||
</syntaxhighlight> | </syntaxhighlight> | ||
</section> | |||
==Requirements== | ==Requirements== |
Revision as of 20:30, 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
Click to collapse [-]
ClientaddCommandHandler("myBlendMode", function() outputChatBox( dxGetBlendMode() ) end)
Requirements
This template will be deleted.
See Also
- dxConvertPixels
- dxCreateFont
- dxCreateRenderTarget
- dxCreateScreenSource
- dxCreateShader
- dxCreateTexture
- dxDrawCircle
- dxDrawImage
- dxDrawImageSection
- dxDrawLine
- dxDrawLine3D
- dxDrawMaterialLine3D
- dxDrawMaterialPrimitive
- dxDrawMaterialPrimitive3D
- dxDrawMaterialSectionLine3D
- dxDrawPrimitive
- dxDrawPrimitive3D
- dxDrawRectangle
- dxDrawText
- dxDrawWiredSphere
- dxGetBlendMode
- dxGetFontHeight
- dxGetMaterialSize
- dxGetPixelColor
- dxGetPixelsSize
- dxGetPixelsFormat
- dxGetStatus
- dxGetTextSize
- dxGetTextWidth
- dxGetTexturePixels
- dxIsAspectRatioAdjustmentEnabled
- dxSetAspectRatioAdjustmentEnabled
- dxSetBlendMode
- dxSetPixelColor
- dxSetRenderTarget
- dxSetShaderValue
- dxSetShaderTessellation
- dxSetShaderTransform
- dxSetTestMode
- dxSetTextureEdge
- dxSetTexturePixels
- dxUpdateScreenSource