Skip to main content
Skip to main content

set2DMaskFromTexture

set2DMaskFromTexture

Description

Set mask for 2d rendering (font and overlays)

Definition

set2DMaskFromTexture(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