Functional and eco-friendly polymers in textile applications