dxGetEntityBrush%(entity%)

Parameters

entity - entity handle

Description

Returns a brush with the same properties as is applied to the specified entity.

If this command does not appear to be returning a valid brush, try using dxGetSurfaceBrush instead with the first surface available.

Remember, dxGetEntityBrush actually creates a new brush so don't forget to free it afterwards using dxFreeBrush to prevent memory leaks.

Once you have got the brush handle from an entity, you can use dxGetBrushTexture and dxTextureName to get the details of what texture(s) are applied to the brush.

See also: dxGetSurfaceBrush, dxFreeBrush, dxGetBrushTexture, dxTextureName.

Index