Lines Matching defs:levels
160 * remaining image levels. The image data doesn't matter here - the back-
166 CRTextureLevel *levels;
171 levels = tobj->level[target - GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB];
174 levels = tobj->level[0];
177 width = levels[tobj->baseLevel].width;
178 height = levels[tobj->baseLevel].height;
179 depth = levels[tobj->baseLevel].depth;
189 levels[level].width = width;
190 levels[level].height = height;
191 levels[level].depth = depth;
192 levels[level].internalFormat = levels[tobj->baseLevel].internalFormat;
193 levels[level].format = levels[tobj->baseLevel].format;
194 levels[level].type = levels[tobj->baseLevel].type;
196 levels[level].compressed = levels[tobj->baseLevel].compressed;
198 levels[level].texFormat = levels[tobj->baseLevel].texFormat;
206 levels[tobj->baseLevel].generateMipmap = GL_TRUE;
660 CRTextureLevel *levels = tobj->level[face];
662 if (levels)
666 if (levels[i].img)
668 crFree(levels[i].img);
670 levels[i].img = NULL;
671 levels[i].bytes = 0;
672 levels[i].internalFormat = GL_ONE;
673 levels[i].format = GL_RGBA;
674 levels[i].type = GL_UNSIGNED_BYTE;