3D printed part

A friend has a 3D printer but all I see him making seem to be produced with a product similar to hot glue. What type of materials can the printers use that are durable for functional parts?