MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / detectIsPaa

Function detectIsPaa

engine/Poseidon/Graphics/Textures/PAADecoder.cpp:148–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148static bool detectIsPaa(const std::string& path)
149{
150 auto dot = path.find_last_of('.');
151 if (dot == std::string::npos)
152 return false;
153 auto ext = path.substr(dot);
154 std::transform(ext.begin(), ext.end(), ext.begin(), ::tolower);
155 return ext == ".paa";
156}
157
158// --- Pixel format converters ---
159

Callers 2

ReadPAAInfoFunction · 0.85
DecodePAAFileMipFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected