Skip to main content
Skip to main content

set2DMaskFromOverlay

set2DMaskFromOverlay

Description

Set mask for 2d rendering (font and overlays)

Definition

set2DMaskFromOverlay(entityId textureId, boolean maskAlphaOnly, float x, float y, float width, float height)

Arguments

entityIdtextureId
booleanmaskAlphaOnlyif true, applies the mask to the alpha channel only, otherwise to all 4 channels
floatxx position
floatyy position
floatwidth
floatheight