Home
last modified time | relevance | path

Searched refs:tex (Results 1 – 25 of 32) sorted by relevance

12

/oneTBB/examples/parallel_for/tachyon/src/
H A Dapi.cpp288 tex->islight = 0; in apitextotex()
289 tex->shadowcast = 1; in apitextotex()
290 tex->phong = 0.0; in apitextotex()
291 tex->phongexp = 0.0; in apitextotex()
292 tex->phongtype = 0; in apitextotex()
296 texture *tex; in rt_texture() local
300 return (tex); in rt_texture()
305 tex->col = col; in rt_tex_color()
310 tex->phong = phong; in rt_tex_phong()
320 li->tex->islight = 1; in rt_light()
[all …]
H A Dtexture.cpp61 return tex->col; in standard_texture()
75 u = u * tex->scale.x; in image_cyl_texture()
76 u = u + tex->rot.x; in image_cyl_texture()
81 v = v * tex->scale.y; in image_cyl_texture()
82 v = v + tex->rot.y; in image_cyl_texture()
101 u = u * tex->scale.x; in image_sphere_texture()
102 u = u + tex->rot.x; in image_sphere_texture()
108 v = v + tex->rot.y; in image_sphere_texture()
134 u = u + tex->rot.x; in image_plane_texture()
140 v = v + tex->rot.y; in image_plane_texture()
[all …]
H A Dextvol.cpp85 texture *tex; in newextvol() local
105 xvol->tex->ctr.x = 0.0; in newextvol()
106 xvol->tex->ctr.y = 0.0; in newextvol()
107 xvol->tex->ctr.z = 0.0; in newextvol()
108 xvol->tex->rot = xvol->tex->ctr; in newextvol()
109 xvol->tex->scale = xvol->tex->ctr; in newextvol()
110 xvol->tex->uaxs = xvol->tex->ctr; in newextvol()
111 xvol->tex->vaxs = xvol->tex->ctr; in newextvol()
112 xvol->tex->islight = 0; in newextvol()
115 xvol->tex->col = tex->col; in newextvol()
[all …]
H A Dparse.cpp111 textable[numtextures].tex = tex; in add_texture()
534 void *tex; in GetCylinder() local
556 void *tex; in GetFCylinder() local
583 void *tex; in GetPolyCylinder() local
612 void *tex; in GetSphere() local
632 void *tex; in GetPlane() local
650 void *tex; in GetVol() local
670 void *tex; in GetBox() local
687 void *tex; in GetRing() local
708 void *tex; in GetTri() local
[all …]
H A Dshade.cpp96 col = obj->tex->texfunc(&hit, obj->tex, incident); in shader()
103 if ((obj->tex->diffuse > 0.0) || (obj->tex->phong > 0.0)) { in shader()
136 ColorAddS(&diffuse, &li->tex->col, inten); in shader()
139 if (obj->tex->phong > 0.0) { in shader()
142 if (obj->tex->phongtype) in shader()
152 ColorScale(&diffuse, obj->tex->diffuse); in shader()
154 col.r *= (diffuse.r + obj->tex->ambient); /* do a product of the */ in shader()
155 col.g *= (diffuse.g + obj->tex->ambient); /* diffuse intensity with */ in shader()
158 if (obj->tex->phong > 0.0) { in shader()
164 if (obj->tex->specular > 0.0) { in shader()
[all …]
H A Dapitrigeom.cpp166 rt_tri(tex, in rt_tri_box()
170 rt_tri(tex, in rt_tri_box()
176 rt_tri(tex, in rt_tri_box()
180 rt_tri(tex, in rt_tri_box()
186 rt_tri(tex, in rt_tri_box()
190 rt_tri(tex, in rt_tri_box()
196 rt_tri(tex, in rt_tri_box()
200 rt_tri(tex, in rt_tri_box()
206 rt_tri(tex, in rt_tri_box()
210 rt_tri(tex, in rt_tri_box()
[all …]
H A Dapitrigeom.hpp52 void rt_tri_fcylinder(void* tex, vector ctr, vector axis, apiflt rad);
53 void rt_tri_cylinder(void* tex, vector ctr, vector axis, apiflt rad);
54 void rt_tri_ring(void* tex, vector ctr, vector norm, apiflt a, apiflt b);
55 void rt_tri_plane(void* tex, vector ctr, vector norm);
56 void rt_tri_box(void* tex, vector min, vector max);
H A Dapigeom.cpp59 void rt_polycylinder(void *tex, vector *points, int numpts, apiflt rad) { in rt_polycylinder() argument
68 rt_sphere(tex, points[0], rad); in rt_polycylinder()
76 rt_fcylinder(tex, points[i - 1], a, rad); in rt_polycylinder()
77 rt_sphere(tex, points[i], rad); in rt_polycylinder()
106 rt_tri(tex, v1, v0, v2); in rt_heightfield()
120 rt_tri(tex, v0, v1, v2); in rt_heightfield()
126 rt_sheightfield(void *tex, vector ctr, int m, int n, apiflt *field, apiflt wx, apiflt wy) { in rt_sheightfield() argument
176 rt_stri(tex, in rt_sheightfield()
183 rt_stri(tex, in rt_sheightfield()
252 void rt_landscape(void *tex, int m, int n, vector ctr, apiflt wx, apiflt wy) { in rt_landscape() argument
[all …]
H A Dplane.cpp65 object *newplane(void *tex, vector ctr, vector norm) { in newplane() argument
72 p->tex = (texture *)tex; in newplane()
H A Dvol.cpp82 texture *tx, *tex; in newscalarvol() local
85 tex = (texture *)intex; in newscalarvol()
86 tex->shadowcast = 0; /* doesn't cast a shadow */ in newscalarvol()
99 vol->opacity = tex->opacity; in newscalarvol()
116 tx->col = tex->col; in newscalarvol()
160 color scalar_volume_texture(vector *hit, texture *tex, ray *ry) { in scalar_volume_texture() argument
172 bx = (box *)tex->obj; in scalar_volume_texture()
173 vol = (scalarvol *)bx->tex->img; in scalar_volume_texture()
H A Dlight.cpp65 point_light *newlight(void *tex, vector ctr, flt rad) { in newlight() argument
72 l->tex = (texture *)tex; in newlight()
H A Dtriangle.cpp70 object *newtri(void *tex, vector v0, vector v1, vector v2) { in newtri() argument
86 t->tex = (texture *)tex; in newtri()
97 object *newstri(void *tex, vector v0, vector v1, vector v2, vector n0, vector n1, vector n2) { in newstri() argument
113 t->tex = (texture *)tex; in newstri()
H A Dbox.hpp56 texture *tex; /* object texture */ member
61 box *newbox(void *tex, vector min, vector max);
H A Dplane.hpp52 object *newplane(void *tex, vector ctr, vector norm);
59 texture *tex; /* object texture */ member
H A Dsphere.cpp65 object *newsphere(void *tex, vector ctr, flt rad) { in newsphere() argument
72 s->tex = (texture *)tex; in newsphere()
H A Dring.hpp52 object *newring(void *tex, vector ctr, vector norm, flt in, flt out);
59 texture *tex; /* object texture */ member
H A Dring.cpp65 object *newring(void *tex, vector ctr, vector norm, flt inrad, flt outrad) { in newring() argument
72 r->tex = (texture *)tex; in newring()
H A Dcylinder.cpp72 object *newcylinder(void *tex, vector ctr, vector axis, flt rad) { in newcylinder() argument
79 c->tex = (texture *)tex; in newcylinder()
160 object *newfcylinder(void *tex, vector ctr, vector axis, flt rad) { in newfcylinder() argument
167 c->tex = (texture *)tex; in newfcylinder()
H A Dtriangle.hpp65 texture *tex; /* object texture */ member
75 texture *tex; /* object texture */ member
H A Dparse.hpp79 void *tex; member
87 static errcode add_texture(void *tex, char name[TEXNAMELEN]);
H A Dbox.cpp72 box *newbox(void *tex, vector min, vector max) { in newbox() argument
78 b->tex = (texture *)tex; in newbox()
H A Dlight.hpp56 texture *tex; /* object texture */ member
H A Dsphere.hpp60 texture *tex; /* object texture */ member
H A Dbndbox.hpp56 texture *tex; /* object texture */ member
H A Dextvol.hpp57 texture *tex; /* object texture */ member

12