MCPcopy Create free account
hub / github.com/davideberly/GeometricTools / LoadTextureLevel

Method LoadTextureLevel

GTE/Graphics/GL46/GL46Texture3.cpp:58–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58void GL46Texture3::LoadTextureLevel(uint32_t level, void const* data)
59{
60 auto texture = GetTexture();
61 if (texture && level < texture->GetNumLevels())
62 {
63 auto width = texture->GetDimensionFor(level, 0);
64 auto height = texture->GetDimensionFor(level, 1);
65 auto depth = texture->GetDimensionFor(level, 2);
66
67 glTexSubImage3D(GL_TEXTURE_3D, level, 0, 0, 0, width, height, depth,
68 mExternalFormat, mExternalType, data);
69 }
70}
71
72

Callers

nothing calls this directly

Calls 3

glTexSubImage3DFunction · 0.85
GetNumLevelsMethod · 0.80
GetDimensionForMethod · 0.80

Tested by

no test coverage detected