29 : ntrail(0), length0(0), length1(0), texture(tex), maxtrail(n), dim(1)
46 for (
int i = 0; i <
maxtrail*2; i++) {
50 verts->
tv[i] = (i & 1) ? 1.0f : 0.0f;
53 polys =
new(__FILE__,__LINE__)
Poly[maxtrail];
86 Point vcam = cam_pos - head;
96 for (
int i = 0; i < ntrail-1; i++) {
100 Point vcam = cam_pos - head;
104 float trail_width = (float) (
width + (ntrail-i) *
width * 0.1);
105 if (i == ntrail-2) trail_width = (float) (
width * 0.7);
106 Point vlat = vtmp * trail_width;
116 verts->
diffuse[2*i+2] = D3DCOLOR_RGBA(bright,bright,bright,bright);
117 verts->
diffuse[2*i+3] = D3DCOLOR_RGBA(bright,bright,bright,bright);
179 float tu1 = (float)
length1 / 250.0f;
194 for (
int i = 0; i <
ntrail-1; i++)