| /oneTBB/examples/parallel_for/tachyon/src/ |
| H A D | api.cpp | 288 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 D | texture.cpp | 61 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 D | extvol.cpp | 85 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 D | parse.cpp | 111 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 D | shade.cpp | 96 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 D | apitrigeom.cpp | 166 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 D | apitrigeom.hpp | 52 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 D | apigeom.cpp | 59 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 D | plane.cpp | 65 object *newplane(void *tex, vector ctr, vector norm) { in newplane() argument 72 p->tex = (texture *)tex; in newplane()
|
| H A D | vol.cpp | 82 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 D | light.cpp | 65 point_light *newlight(void *tex, vector ctr, flt rad) { in newlight() argument 72 l->tex = (texture *)tex; in newlight()
|
| H A D | triangle.cpp | 70 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 D | box.hpp | 56 texture *tex; /* object texture */ member 61 box *newbox(void *tex, vector min, vector max);
|
| H A D | plane.hpp | 52 object *newplane(void *tex, vector ctr, vector norm); 59 texture *tex; /* object texture */ member
|
| H A D | sphere.cpp | 65 object *newsphere(void *tex, vector ctr, flt rad) { in newsphere() argument 72 s->tex = (texture *)tex; in newsphere()
|
| H A D | ring.hpp | 52 object *newring(void *tex, vector ctr, vector norm, flt in, flt out); 59 texture *tex; /* object texture */ member
|
| H A D | ring.cpp | 65 object *newring(void *tex, vector ctr, vector norm, flt inrad, flt outrad) { in newring() argument 72 r->tex = (texture *)tex; in newring()
|
| H A D | cylinder.cpp | 72 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 D | triangle.hpp | 65 texture *tex; /* object texture */ member 75 texture *tex; /* object texture */ member
|
| H A D | parse.hpp | 79 void *tex; member 87 static errcode add_texture(void *tex, char name[TEXNAMELEN]);
|
| H A D | box.cpp | 72 box *newbox(void *tex, vector min, vector max) { in newbox() argument 78 b->tex = (texture *)tex; in newbox()
|
| H A D | light.hpp | 56 texture *tex; /* object texture */ member
|
| H A D | sphere.hpp | 60 texture *tex; /* object texture */ member
|
| H A D | bndbox.hpp | 56 texture *tex; /* object texture */ member
|
| H A D | extvol.hpp | 57 texture *tex; /* object texture */ member
|