Lines Matching defs:img

216                                                                 CRTextureObj **obj, CRTextureLevel **img)
224 *img = unit->currentTexture1D->level[0] + level;
228 *img = t->proxy1D.level[0] + level;
232 *img = unit->currentTexture2D->level[0] + level;
236 *img = t->proxy2D.level[0] + level;
240 *img = unit->currentTexture3D->level[0] + level;
244 *img = t->proxy3D.level[0] + level;
256 *img = t->proxyRect.level[0] + level;
260 *img = unit->currentTextureRect->level[0] + level;
274 *img = t->proxyCubeMap.level[0] + level;
278 *img = NULL;
282 *img = unit->currentTextureCubeMap->level[0] + level;
286 *img = unit->currentTextureCubeMap->level[1] + level;
290 *img = unit->currentTextureCubeMap->level[2] + level;
294 *img = unit->currentTextureCubeMap->level[3] + level;
298 *img = unit->currentTextureCubeMap->level[4] + level;
302 *img = unit->currentTextureCubeMap->level[5] + level;
313 *img = NULL;
609 if (tl->img)
610 crFree(tl->img);
611 tl->img = (GLubyte *) crAlloc(tl->bytes);
612 if (!tl->img)
619 crPixelCopy1D((GLvoid *) tl->img, format, type,
666 if (levels[i].img)
668 crFree(levels[i].img);
670 levels[i].img = NULL;
779 if (tl->img)
780 crFree(tl->img);
781 tl->img = (GLubyte *) crAlloc(tl->bytes);
782 if (!tl->img)
792 crMemcpy((void *) tl->img, (void *) pixels, tl->bytes);
797 (GLvoid *) tl->img, format, type, NULL, /* dst */
898 if (tl->img)
899 crFree(tl->img);
900 tl->img = (GLubyte *) crAlloc(tl->bytes);
901 if (!tl->img)
908 crPixelCopy3D(width, height, depth, (GLvoid *) (tl->img), format, type,
985 crPixelCopy1D((void *) (tl->img + xoffset * tl->bytesPerPixel),
1018 GLubyte *img = NULL;
1051 img = tl->img +
1059 crMemcpy(img, src, tl->bytesPerPixel * width);
1060 img += tl->width * tl->bytesPerPixel;
1114 GLubyte *img = NULL;
1147 img = tl->img + xoffset * tl->bytesPerPixel +
1156 crMemcpy(img, src, tl->bytesPerPixel * width * height);
1157 img += tl->width * tl->height * tl->bytesPerPixel;
1220 if (tl->img)
1221 crFree(tl->img);
1222 tl->img = (GLubyte *) crAlloc(tl->bytes);
1223 if (!tl->img)
1230 crMemcpy(tl->img, data, imageSize);
1300 if (tl->img)
1301 crFree(tl->img);
1302 tl->img = (GLubyte *) crAlloc(tl->bytes);
1303 if (!tl->img)
1310 crMemcpy(tl->img, data, imageSize);
1381 if (tl->img)
1382 crFree(tl->img);
1383 tl->img = (GLubyte *) crAlloc(tl->bytes);
1384 if (!tl->img)
1391 crMemcpy(tl->img, data, imageSize);
1455 crMemcpy(tl->img, data, imageSize);
1516 crMemcpy(tl->img, data, imageSize);
1579 crMemcpy(tl->img, data, imageSize);
1604 crStateGetCompressedTexImageARB(GLenum target, GLint level, GLvoid * img)
1638 crMemcpy(img, tl->img, tl->bytes);
1640 diff_api.GetCompressedTexImageARB(target, level, img);
1718 type, NULL, (tl->img), format, type, &(c->pack));
1725 tl->img, format, type, &(c->pack)); /* src */