Attr-Texture name by part

From Vectorlab
Jump to: navigation, search


Gets the name of a texture by object and part ID. This needs the routine A_TextureName to be loaded first. By Orso B. Schmid


{ Orso ***************************** }	
{ returns the texture name or '' if no texture }
FUNCTION A_TextureNameByPart(h: HANDLE; partID: INTEGER): STRING;
	VAR
		temp_l: LONGINT;
	BEGIN
		A_TextureNameByPart := A_TextureName(GetTextureRef(h, partID, TRUE));
		{ use false to get the by class flag of the texture: if by class it returns -1 }
		
		{
		WALLS:
			0= right
			1= left
			2= center
		ROOFS:
			0= top
			1= dormer
		OBJECTS:
			0= all
		}
	END;