MCPcopy Create free account
hub / github.com/NazaraEngine/NazaraEngine / GetDepth

Method GetDepth

src/Nazara/Utility/Image.cpp:626–637  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

624 }
625
626 unsigned int Image::GetDepth(UInt8 level) const
627 {
628 #if NAZARA_UTILITY_SAFE
629 if (level >= m_sharedImage->levels.size())
630 {
631 NazaraError("Level out of bounds (" + String::Number(level) + " >= " + String::Number(m_sharedImage->levels.size()) + ')');
632 return 0;
633 }
634 #endif
635
636 return GetLevelSize(m_sharedImage->depth, level);
637 }
638
639 PixelFormatType Image::GetFormat() const
640 {

Callers

nothing calls this directly

Calls 1

GetLevelSizeFunction · 0.70

Tested by

no test coverage detected