MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / GetMipHeight

Method GetMipHeight

Source/Images/texture_data.cpp:91–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91unsigned int TextureData::GetMipHeight(unsigned int mip) const {
92 const unsigned face = 0;
93 const unsigned index = face * mip_levels + mip;
94 if (index < mip_heights.size()) {
95 return mip_heights[index];
96 } else {
97 return 0;
98 }
99}
100
101unsigned int TextureData::GetNumFaces() const {
102 return num_faces;

Callers 2

subImageMethod · 0.80
TextureToVRAMMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected