Logo Search packages:      
Sourcecode: yafray version File versions

surfacePoint_t::surfacePoint_t ( object3d_t *  o,
const point3d_t &  p,
const point3d_t &  orc,
const vector3d_t &  n,
const vector3d_t &  g,
GFLOAT  u,
GFLOAT  v,
color_t  vcol,
PFLOAT  d,
const shader_t sha = NULL,
bool  uv = false,
bool  hvcol = false,
bool  horco = false 
) [inline]

A friend.

A friend A friend A simple constructor taken all the info

Parameters:
o is the object wich this point comes from.
p is a 3d point in the world representing the position.
n is the surface normal in that point.
g is the geometric (not smoothed) normal in that point.
u is the u texture coordinate in that point.
v is the v texture coordinate in that point.
d is the depth of the point from the viewer (i.e the distance)

Definition at line 64 of file surface.h.

            {     suP=p;  suN=n;  suNg=g;
                  suU=u;  suV=v;  vtxcol=vcol;
                  suZ=d;  obj=o; shader=sha;  hasuv=uv;  has_vcol=hvcol;
                  hasorco=horco;
                  orcoP=orc;
                  createCS(suN,suNU,suNV);
                  dudu=dudv=dvdu=dvdv=0;
                  originelement=NULL;
            }


Generated by  Doxygen 1.6.0   Back to index