surface - texture problem

Blitz3D Forums/Blitz3D Beginners Area/surface - texture problem

David(Posted 2004) [#1]
i have mesh of b3d, i get surface by index, and i need the texture name or surface name, but i not found the function.

thanks


Ricky Smith(Posted 2004) [#2]
Try:
brush=GetSurfaceBrush(surf)
brushtex=GetBrushTexture(brush)
texname=TextureName(brushtex,0)


These commands were added to version 1.85
Surfaces dont have names.


Beaker(Posted 2004) [#3]
Any textures and brushes found with GetSurfaceBrush() and GetBrushTexture() are duplicates of the originals (with different handles), they must be free'd after they are 'created'.