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

Function ilDxtcDataToImage

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

Source from the content-addressed store, hash-verified

1998
1999
2000ILAPI ILboolean ILAPIENTRY ilDxtcDataToImage()
2001{
2002 ILint i, j;
2003 ILuint ImgID = ilGetInteger(IL_CUR_IMAGE);
2004 ILint ImgCount = ilGetInteger(IL_NUM_IMAGES);
2005 ILint MipCount;
2006 ILboolean ret = IL_TRUE;
2007
2008 for(i = 0; i <= ImgCount; ++i) {
2009 ilBindImage(ImgID);
2010 ilActiveImage(i);
2011
2012 MipCount = ilGetInteger(IL_NUM_MIPMAPS);
2013 for(j = 0; j <= MipCount; ++j) {
2014 ilBindImage(ImgID);
2015 ilActiveImage(i);
2016 ilActiveMipmap(j);
2017
2018 if (!ilDxtcDataToSurface())
2019 ret = IL_FALSE;
2020 }
2021 }
2022 ilBindImage(ImgID);
2023
2024 return ret;
2025}
2026
2027
2028ILAPI ILboolean ILAPIENTRY ilSurfaceToDxtcData(ILenum Format)

Callers

nothing calls this directly

Calls 1

ilDxtcDataToSurfaceFunction · 0.85

Tested by

no test coverage detected