MCPcopy Create free account
hub / github.com/DentonW/DevIL / ilFreeImageDxtcData

Function ilFreeImageDxtcData

DevIL/src-IL/src/il_dds.cpp:1921–1941  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1919}
1920
1921void ilFreeImageDxtcData()
1922{
1923 ILint i, j;
1924 ILuint ImgID = ilGetInteger(IL_CUR_IMAGE);
1925 ILint ImgCount = ilGetInteger(IL_NUM_IMAGES);
1926 ILint MipCount;
1927
1928 for(i = 0; i <= ImgCount; ++i) {
1929 ilBindImage(ImgID);
1930 ilActiveImage(i);
1931
1932 MipCount = ilGetInteger(IL_NUM_MIPMAPS);
1933 for(j = 0; j <= MipCount; ++j) {
1934 ilBindImage(ImgID);
1935 ilActiveImage(i);
1936 ilActiveMipmap(j);
1937
1938 ilFreeSurfaceDxtcData();
1939 }
1940 }
1941}
1942
1943/*
1944 * This assumes DxtcData, DxtcFormat, width, height, and depth are valid

Callers

nothing calls this directly

Calls 1

ilFreeSurfaceDxtcDataFunction · 0.85

Tested by

no test coverage detected