MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / getStringForMapType

Function getStringForMapType

libs/materials/ParseLib.h:237–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235};
236
237inline std::string getStringForMapType(IShaderLayer::MapType type)
238{
239 for (const auto& pair : MapTypeNames)
240 {
241 if (type == pair.second)
242 {
243 return pair.first;
244 }
245 }
246
247 return std::string();
248}
249
250inline IShaderLayer::MapType getMapTypeForString(const std::string& typeString)
251{

Calls

no outgoing calls

Tested by

no test coverage detected