Fix compilation with unity build
This commit is contained in:
parent
5cb50928f7
commit
72d908817d
|
|
@ -117,10 +117,10 @@ namespace Nz
|
||||||
return sampleCount - remainingBytes / sizeof(Int16);
|
return sampleCount - remainingBytes / sizeof(Int16);
|
||||||
}
|
}
|
||||||
|
|
||||||
constexpr auto s_supportedExtensions = frozen::make_unordered_set<frozen::string>({ ".oga", ".ogg", ".ogm", ".ogv", ".ogx", ".opus", ".spx" });
|
|
||||||
|
|
||||||
bool IsVorbisSupported(std::string_view extension)
|
bool IsVorbisSupported(std::string_view extension)
|
||||||
{
|
{
|
||||||
|
constexpr auto s_supportedExtensions = frozen::make_unordered_set<frozen::string>({ ".oga", ".ogg", ".ogm", ".ogv", ".ogx", ".opus", ".spx" });
|
||||||
|
|
||||||
return s_supportedExtensions.find(extension) != s_supportedExtensions.end();
|
return s_supportedExtensions.find(extension) != s_supportedExtensions.end();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -378,10 +378,10 @@ namespace Nz
|
||||||
mutable unsigned int m_characterSize;
|
mutable unsigned int m_characterSize;
|
||||||
};
|
};
|
||||||
|
|
||||||
constexpr auto s_supportedExtensions = frozen::make_unordered_set<frozen::string>({ ".afm", ".bdf", ".cff", ".cid", ".dfont", ".fnt", ".fon", ".otf", ".pfa", ".pfb", ".pfm", ".pfr", ".sfnt", ".ttc", ".tte", ".ttf" });
|
|
||||||
|
|
||||||
bool IsFreetypeSupported(const std::string_view& extension)
|
bool IsFreetypeSupported(const std::string_view& extension)
|
||||||
{
|
{
|
||||||
|
constexpr auto s_supportedExtensions = frozen::make_unordered_set<frozen::string>({ ".afm", ".bdf", ".cff", ".cid", ".dfont", ".fnt", ".fon", ".otf", ".pfa", ".pfb", ".pfm", ".pfr", ".sfnt", ".ttc", ".tte", ".ttf" });
|
||||||
|
|
||||||
return s_supportedExtensions.find(extension) != s_supportedExtensions.end();
|
return s_supportedExtensions.find(extension) != s_supportedExtensions.end();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -38,10 +38,10 @@ namespace Nz
|
||||||
|
|
||||||
static stbi_io_callbacks s_stbiCallbacks = { StbiRead, StbiSkip, StbiEof };
|
static stbi_io_callbacks s_stbiCallbacks = { StbiRead, StbiSkip, StbiEof };
|
||||||
|
|
||||||
constexpr auto s_supportedExtensions = frozen::make_unordered_set<frozen::string>({ ".bmp", ".gif", ".hdr", ".jpg", ".jpeg", ".pic", ".png", ".ppm", ".pgm", ".psd", ".tga" });
|
|
||||||
|
|
||||||
bool IsSTBSupported(const std::string_view& extension)
|
bool IsSTBSupported(const std::string_view& extension)
|
||||||
{
|
{
|
||||||
|
constexpr auto s_supportedExtensions = frozen::make_unordered_set<frozen::string>({ ".bmp", ".gif", ".hdr", ".jpg", ".jpeg", ".pic", ".png", ".ppm", ".pgm", ".psd", ".tga" });
|
||||||
|
|
||||||
return s_supportedExtensions.find(extension) != s_supportedExtensions.end();
|
return s_supportedExtensions.find(extension) != s_supportedExtensions.end();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue