private void LoadFaces(ImageID imageID, int imageNum) { IL.BindImage(imageID); if (!IL.ActiveImage(imageNum)) { return; } //Get total number of faces (including base face) int faceCount = IL.ilGetInteger(ILDefines.IL_NUM_FACES) + 1; //Get the first face and every other as a mip map chain, when we hit a null, we break for (int i = 0; i < faceCount; i++) { MipMapChain mipMapChain = CreateMipMapChain(imageID, imageNum, i); if (mipMapChain == null) { break; } m_faces.Add(mipMapChain); } }