| 114 | throw std::out_of_range("Invalid bump mapping type " + type); |
| 115 | } |
| 116 | std::string EBumpMappingType_enumToString(EBumpMappingType type) |
| 117 | { |
| 118 | switch (type) |
| 119 | { |
| 120 | case EBumpMappingType::Height: |
| 121 | return "Height"; |
| 122 | case EBumpMappingType::Normal: |
| 123 | return "Normal"; |
| 124 | } |
| 125 | throw std::out_of_range("Invalid bump mapping type enum"); |
| 126 | } |
| 127 | std::ostream& operator<<(std::ostream& os, EBumpMappingType bumpMappingType) { return os << EBumpMappingType_enumToString(bumpMappingType); } |
| 128 | std::istream& operator>>(std::istream& in, EBumpMappingType& bumpMappingType) |
| 129 | { |