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

Function GetLevelSize

src/Nazara/Utility/Image.cpp:21–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19 namespace
20 {
21 inline unsigned int GetLevelSize(unsigned int size, UInt8 level)
22 {
23 if (size == 0) // Possible dans le cas d'une image invalide
24 return 0;
25
26 return std::max(size >> level, 1U);
27 }
28
29 inline UInt8* GetPixelPtr(UInt8* base, UInt8 bpp, unsigned int x, unsigned int y, unsigned int z, unsigned int width, unsigned int height)
30 {

Callers 8

GetConstPixelsMethod · 0.70
GetDepthMethod · 0.70
GetHeightMethod · 0.70
GetMemoryUsageMethod · 0.70
GetPixelsMethod · 0.70
GetSizeMethod · 0.70
GetWidthMethod · 0.70
UpdateMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected