Skip to content

LoadBrush

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

LoadBrush

LoadBrush:Int32 file:String, texture_flags:Int32=1, u_scale:Float32=1, v_scale:Float32=1
Parameter Mode Type Default Description
file In String required
texture_flags In Int32 1
u_scale In Float32 1 How often the texture repeats horizontally. Defaults to 1.
v_scale In Float32 1 How often the texture repeats vertically. Defaults to 1.

Returns: A brush handle, or 0 if the file could not be loaded.

Description

Makes a brush that has a texture loaded from a picture file as its first layer, and returns it. This is a shortcut for LoadTexture, CreateBrush and BrushTexture, including the optional ScaleTexture.

Related Commands

BrushAlpha, BrushBlend, BrushColor, BrushFX, CreateBrush, FreeBrush, GetEntityBrush, GetSurfaceBrush

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally