Lines Matching refs:tex

107     defaulttex.tex = rt_texture(&apitex);  in reset_tex_table()
110 static errcode add_texture(void *tex, char name[TEXNAMELEN]) { in add_texture() argument
111 textable[numtextures].tex = tex; in add_texture()
129 return textable[i].tex; in find_texture()
132 return (defaulttex.tex); in find_texture()
405 static errcode GetTexture(FILE *dfile, void **tex) { in GetTexture() argument
411 *tex = GetTexBody(dfile); in GetTexture()
414 *tex = find_texture(tmp); in GetTexture()
422 apitexture tex; in GetTexBody() local
428 tex.ambient = a; in GetTexBody()
432 tex.diffuse = b; in GetTexBody()
436 tex.specular = c; in GetTexBody()
440 tex.opacity = d; in GetTexBody()
467 tex.col.r = a; in GetTexBody()
468 tex.col.g = b; in GetTexBody()
469 tex.col.b = c; in GetTexBody()
472 fscanf(dfile, "%d", &tex.texturefunc); in GetTexBody()
473 if (tex.texturefunc >= 7) { /* if its an image map, we need a filename */ in GetTexBody()
474 fscanf(dfile, "%s", tex.imap); in GetTexBody()
476 if (tex.texturefunc != 0) { in GetTexBody()
478 rc |= GetVector(dfile, &tex.ctr); in GetTexBody()
480 rc |= GetVector(dfile, &tex.rot); in GetTexBody()
482 rc |= GetVector(dfile, &tex.scale); in GetTexBody()
484 if (tex.texturefunc == 9) { in GetTexBody()
486 rc |= GetVector(dfile, &tex.uaxs); in GetTexBody()
488 rc |= GetVector(dfile, &tex.vaxs); in GetTexBody()
491 voidtex = rt_texture(&tex); in GetTexBody()
500 apitexture tex; in GetLight() local
504 memset(&tex, 0, sizeof(apitexture)); in GetLight()
512 rc |= GetColor(dfile, &tex.col); in GetLight()
514 rt_light(rt_texture(&tex), ctr, rad); in GetLight()
534 void *tex; in GetCylinder() local
546 rc |= GetTexture(dfile, &tex); in GetCylinder()
547 rt_cylinder(tex, ctr, axis, rad); in GetCylinder()
556 void *tex; in GetFCylinder() local
574 rc |= GetTexture(dfile, &tex); in GetFCylinder()
575 rt_fcylinder(tex, ctr, axis, rad); in GetFCylinder()
583 void *tex; in GetPolyCylinder() local
601 rc |= GetTexture(dfile, &tex); in GetPolyCylinder()
602 rt_polycylinder(tex, temp, numpts, rad); in GetPolyCylinder()
612 void *tex; in GetSphere() local
622 rc |= GetTexture(dfile, &tex); in GetSphere()
624 rt_sphere(tex, ctr, rad); in GetSphere()
632 void *tex; in GetPlane() local
639 rc |= GetTexture(dfile, &tex); in GetPlane()
641 rt_plane(tex, ctr, normal); in GetPlane()
650 void *tex; in GetVol() local
661 rc |= GetTexture(dfile, &tex); in GetVol()
663 rt_scalarvol(tex, min, max, x, y, z, fname, nullptr); in GetVol()
670 void *tex; in GetBox() local
677 rc |= GetTexture(dfile, &tex); in GetBox()
679 rt_box(tex, min, max); in GetBox()
687 void *tex; in GetRing() local
699 rc |= GetTexture(dfile, &tex); in GetRing()
701 rt_ring(tex, ctr, normal, a, b); in GetRing()
708 void *tex; in GetTri() local
720 rc |= GetTexture(dfile, &tex); in GetTri()
722 rt_tri(tex, v0, v1, v2); in GetTri()
729 void *tex; in GetSTri() local
750 rc |= GetTexture(dfile, &tex); in GetSTri()
752 rt_stri(tex, v0, v1, v2, n0, n1, n2); in GetSTri()
758 void *tex; in GetLandScape() local
776 rc |= GetTexture(dfile, &tex); in GetLandScape()
778 rt_landscape(tex, m, n, ctr, wx, wy); in GetLandScape()
784 void *tex; in GetTPolyFile() local
810 rc |= GetTexture(dfile, &tex); in GetTPolyFile()
842 rt_tri(tex, v1, v0, v2); in GetTPolyFile()