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

Method LoadTextureLevel

GTE/Graphics/GL46/GL46Texture1.cpp:56–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56void GL46Texture1::LoadTextureLevel(uint32_t level, void const* data)
57{
58 auto texture = GetTexture();
59 if (texture && level < texture->GetNumLevels())
60 {
61 auto length = texture->GetDimensionFor(level, 0);
62
63 glTexSubImage1D(GL_TEXTURE_1D, level, 0, length,
64 mExternalFormat, mExternalType, data);
65 }
66}
67
68

Callers

nothing calls this directly

Calls 3

glTexSubImage1DFunction · 0.85
GetNumLevelsMethod · 0.80
GetDimensionForMethod · 0.80

Tested by

no test coverage detected