Skip to content

GetBrushTexture

Narta Xaymar Dirks edited this page Oct 28, 2026 · 5 revisions
Blitz3D

GetBrushTexture

GetBrushTexture:Int32 brush:Int32, index:Int32=0
Parameter Mode Type Default Description
brush In Int32 required The brush.
index In Int32 0 Layer number, 0 to 7. Defaults to 0.

Returns: A new handle for the texture of that layer, or 0. Free it separately when you no longer need it; the brush keeps its texture.

Description

Returns the texture on one layer of the brush, or 0 if there is none. Combine it with TextureName to find out which file a painted surface uses.

Differences

  • A layer without a texture gives 0. The original hands out a handle to an empty texture instead.

Related Commands

BrushAlpha, BrushBlend, BrushColor, BrushFX, BrushShininess, BrushTexture, GetEntityBrush, GetSurfaceBrush

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally