Lines Matching defs:texcoords

494   uint    numtexcoords;		/* number of texcoords in model */
639 uint numtexcoords; /* number of texcoords in model */
643 float* texcoords; /* array of texture coordinates */
652 texcoords = model->texcoords;
684 &texcoords[2 * numtexcoords + X],
685 &texcoords[2 * numtexcoords + Y]);
1226 if (model->texcoords)
1227 free(model->texcoords);
1229 model->texcoords=(float*)malloc(sizeof(float)*2*(model->numtexcoords+1));
1239 model->texcoords[2 * i + 0] = (x + 1.0) / 2.0;
1240 model->texcoords[2 * i + 1] = (y + 1.0) / 2.0;
1281 if (model->texcoords)
1282 free(model->texcoords);
1284 model->texcoords=(float*)malloc(sizeof(float)*2*(model->numtexcoords+1));
1316 model->texcoords[2 * i + 0] = theta / M_PI;
1317 model->texcoords[2 * i + 1] = phi / M_PI;
1353 if (model->texcoords) free(model->texcoords);
1427 model->texcoords = NULL;
1442 of vertices, normals, texcoords & triangles */
1455 model->texcoords = (float*)malloc(sizeof(float) *
1510 if (mode & GLM_TEXTURE && !model->texcoords) {
1577 fprintf(file, "# %d texcoords\n", model->numtexcoords);
1580 model->texcoords[2 * i + 0],
1581 model->texcoords[2 * i + 1]);
1734 float *tex = &model->texcoords[tindex * 2];
1767 free(model->texcoords);
1768 model->texcoords = newTexcoords;
1786 printf("%u texcoords\n", model->numtexcoords);
1874 /* texcoords */
1877 vectors = model->texcoords;
1880 printf("glmOptimize(): %d redundant texcoords.\n",
1889 /* free space for old texcoords */
1892 /* allocate space for the new texcoords */
1894 model->texcoords = (float*)malloc(sizeof(float) *
1899 model->texcoords[2 * i + 0] = copies[2 * i + 0];
1900 model->texcoords[2 * i + 1] = copies[2 * i + 1];
1910 /* look for unused texcoords */