| 1998 | |
| 1999 | |
| 2000 | ILAPI 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 | |
| 2028 | ILAPI ILboolean ILAPIENTRY ilSurfaceToDxtcData(ILenum Format) |
nothing calls this directly
no test coverage detected