vkQuake2 doxygen  1.0 dev
r_aclip.c File Reference
#include "r_local.h"

Go to the source code of this file.

Functions

void R_AliasProjectAndClipTestFinalVert (finalvert_t *fv)
 
void R_Alias_clip_top (finalvert_t *pfv0, finalvert_t *pfv1, finalvert_t *out)
 
void R_Alias_clip_bottom (finalvert_t *pfv0, finalvert_t *pfv1, finalvert_t *out)
 
void R_Alias_clip_left (finalvert_t *pfv0, finalvert_t *pfv1, finalvert_t *out)
 
void R_Alias_clip_right (finalvert_t *pfv0, finalvert_t *pfv1, finalvert_t *out)
 
void R_Alias_clip_z (finalvert_t *pfv0, finalvert_t *pfv1, finalvert_t *out)
 
int R_AliasClip (finalvert_t *in, finalvert_t *out, int flag, int count, void(*clip)(finalvert_t *pfv0, finalvert_t *pfv1, finalvert_t *out))
 
void R_AliasClipTriangle (finalvert_t *index0, finalvert_t *index1, finalvert_t *index2)
 
void R_AliasClipTriangleRGB (finalvert_t *index0, finalvert_t *index1, finalvert_t *index2)
 

Variables

static finalvert_t fv [2][8]
 

Function Documentation

◆ R_Alias_clip_bottom()

void R_Alias_clip_bottom ( finalvert_t pfv0,
finalvert_t pfv1,
finalvert_t out 
)

Definition at line 186 of file r_aclip.c.

188 {
189  float scale;
190 
191  if (pfv0->v >= pfv1->v)
192  {
193  scale = (float)(r_refdef.aliasvrectbottom - pfv0->v) /
194  (pfv1->v - pfv0->v);
195 
196  out->u = pfv0->u + ( pfv1->u - pfv0->u ) * scale + 0.5;
197  out->v = pfv0->v + ( pfv1->v - pfv0->v ) * scale + 0.5;
198  out->s = pfv0->s + ( pfv1->s - pfv0->s ) * scale + 0.5;
199  out->t = pfv0->t + ( pfv1->t - pfv0->t ) * scale + 0.5;
200  out->l = pfv0->l + ( pfv1->l - pfv0->l ) * scale + 0.5;
201  out->zi = pfv0->zi + ( pfv1->zi - pfv0->zi) * scale + 0.5;
202  out->lr = pfv0->lr + ( pfv1->lr - pfv0->lr ) * scale + 0.5;
203  out->lg = pfv0->lg + ( pfv1->lg - pfv0->lg ) * scale + 0.5;
204  out->lb = pfv0->lb + ( pfv1->lb - pfv0->lb ) * scale + 0.5;
205  }
206  else
207  {
208  scale = (float)(r_refdef.aliasvrectbottom - pfv1->v) /
209  (pfv0->v - pfv1->v);
210 
211  out->u = pfv1->u + ( pfv0->u - pfv1->u ) * scale + 0.5;
212  out->v = pfv1->v + ( pfv0->v - pfv1->v ) * scale + 0.5;
213  out->s = pfv1->s + ( pfv0->s - pfv1->s ) * scale + 0.5;
214  out->t = pfv1->t + ( pfv0->t - pfv1->t ) * scale + 0.5;
215  out->l = pfv1->l + ( pfv0->l - pfv1->l ) * scale + 0.5;
216  out->zi = pfv1->zi + ( pfv0->zi - pfv1->zi) * scale + 0.5;
217  out->lr = pfv1->lr + ( pfv0->lr - pfv1->lr ) * scale + 0.5;
218  out->lg = pfv1->lg + ( pfv0->lg - pfv1->lg ) * scale + 0.5;
219  out->lb = pfv1->lb + ( pfv0->lb - pfv1->lb ) * scale + 0.5;
220  }
221 }

Referenced by R_AliasClipTriangle(), and R_AliasClipTriangleRGB().

◆ R_Alias_clip_left()

void R_Alias_clip_left ( finalvert_t pfv0,
finalvert_t pfv1,
finalvert_t out 
)

Definition at line 69 of file r_aclip.c.

70 {
71  float scale;
72 
73  if (pfv0->v >= pfv1->v )
74  {
75  scale = (float)(r_refdef.aliasvrect.x - pfv0->u) /
76  (pfv1->u - pfv0->u);
77  out->u = pfv0->u + ( pfv1->u - pfv0->u ) * scale + 0.5;
78  out->v = pfv0->v + ( pfv1->v - pfv0->v ) * scale + 0.5;
79  out->s = pfv0->s + ( pfv1->s - pfv0->s ) * scale + 0.5;
80  out->t = pfv0->t + ( pfv1->t - pfv0->t ) * scale + 0.5;
81  out->l = pfv0->l + ( pfv1->l - pfv0->l ) * scale + 0.5;
82  out->zi = pfv0->zi + ( pfv1->zi - pfv0->zi) * scale + 0.5;
83 #ifdef COLMODEL
84  out->lr = pfv0->lr + ( pfv1->lr - pfv0->lr ) * scale + 0.5;
85  out->lg = pfv0->lg + ( pfv1->lg - pfv0->lg ) * scale + 0.5;
86  out->lb = pfv0->lb + ( pfv1->lb - pfv0->lb ) * scale + 0.5;
87 #endif
88  }
89  else
90  {
91  scale = (float)(r_refdef.aliasvrect.x - pfv1->u) /
92  (pfv0->u - pfv1->u);
93  out->u = pfv1->u + ( pfv0->u - pfv1->u ) * scale + 0.5;
94  out->v = pfv1->v + ( pfv0->v - pfv1->v ) * scale + 0.5;
95  out->s = pfv1->s + ( pfv0->s - pfv1->s ) * scale + 0.5;
96  out->t = pfv1->t + ( pfv0->t - pfv1->t ) * scale + 0.5;
97  out->l = pfv1->l + ( pfv0->l - pfv1->l ) * scale + 0.5;
98  out->zi = pfv1->zi + ( pfv0->zi - pfv1->zi) * scale + 0.5;
99 #ifdef COLMODEL
100  out->lr = pfv1->lr + ( pfv0->lr - pfv1->lr ) * scale + 0.5;
101  out->lg = pfv1->lg + ( pfv0->lg - pfv1->lg ) * scale + 0.5;
102  out->lb = pfv1->lb + ( pfv0->lb - pfv1->lb ) * scale + 0.5;
103 #endif
104  }
105 }

Referenced by R_AliasClipTriangle(), and R_AliasClipTriangleRGB().

◆ R_Alias_clip_right()

void R_Alias_clip_right ( finalvert_t pfv0,
finalvert_t pfv1,
finalvert_t out 
)

Definition at line 108 of file r_aclip.c.

109 {
110  float scale;
111 
112  if ( pfv0->v >= pfv1->v )
113  {
114  scale = (float)(r_refdef.aliasvrectright - pfv0->u ) /
115  (pfv1->u - pfv0->u );
116  out->u = pfv0->u + ( pfv1->u - pfv0->u ) * scale + 0.5;
117  out->v = pfv0->v + ( pfv1->v - pfv0->v ) * scale + 0.5;
118  out->s = pfv0->s + ( pfv1->s - pfv0->s ) * scale + 0.5;
119  out->t = pfv0->t + ( pfv1->t - pfv0->t ) * scale + 0.5;
120  out->l = pfv0->l + ( pfv1->l - pfv0->l ) * scale + 0.5;
121  out->zi = pfv0->zi + ( pfv1->zi - pfv0->zi) * scale + 0.5;
122 #ifdef COLMODEL
123  out->lr = pfv0->lr + ( pfv1->lr - pfv0->lr ) * scale + 0.5;
124  out->lg = pfv0->lg + ( pfv1->lg - pfv0->lg ) * scale + 0.5;
125  out->lb = pfv0->lb + ( pfv1->lb - pfv0->lb ) * scale + 0.5;
126 #endif
127  }
128  else
129  {
130  scale = (float)(r_refdef.aliasvrectright - pfv1->u ) /
131  (pfv0->u - pfv1->u );
132  out->u = pfv1->u + ( pfv0->u - pfv1->u ) * scale + 0.5;
133  out->v = pfv1->v + ( pfv0->v - pfv1->v ) * scale + 0.5;
134  out->s = pfv1->s + ( pfv0->s - pfv1->s ) * scale + 0.5;
135  out->t = pfv1->t + ( pfv0->t - pfv1->t ) * scale + 0.5;
136  out->l = pfv1->l + ( pfv0->l - pfv1->l ) * scale + 0.5;
137  out->zi = pfv1->zi + ( pfv0->zi - pfv1->zi) * scale + 0.5;
138 #ifdef COLMODEL
139  out->lr = pfv1->lr + ( pfv0->lr - pfv1->lr ) * scale + 0.5;
140  out->lg = pfv1->lg + ( pfv0->lg - pfv1->lg ) * scale + 0.5;
141  out->lb = pfv1->lb + ( pfv0->lb - pfv1->lb ) * scale + 0.5;
142 #endif
143  }
144 }

Referenced by R_AliasClipTriangle(), and R_AliasClipTriangleRGB().

◆ R_Alias_clip_top()

void R_Alias_clip_top ( finalvert_t pfv0,
finalvert_t pfv1,
finalvert_t out 
)

Definition at line 147 of file r_aclip.c.

148 {
149  float scale;
150 
151  if (pfv0->v >= pfv1->v)
152  {
153  scale = (float)(r_refdef.aliasvrect.y - pfv0->v) /
154  (pfv1->v - pfv0->v);
155  out->u = pfv0->u + ( pfv1->u - pfv0->u ) * scale + 0.5;
156  out->v = pfv0->v + ( pfv1->v - pfv0->v ) * scale + 0.5;
157  out->s = pfv0->s + ( pfv1->s - pfv0->s ) * scale + 0.5;
158  out->t = pfv0->t + ( pfv1->t - pfv0->t ) * scale + 0.5;
159  out->l = pfv0->l + ( pfv1->l - pfv0->l ) * scale + 0.5;
160  out->zi = pfv0->zi + ( pfv1->zi - pfv0->zi) * scale + 0.5;
161 #ifdef COLMODEL
162  out->lr = pfv0->lr + ( pfv1->lr - pfv0->lr ) * scale + 0.5;
163  out->lg = pfv0->lg + ( pfv1->lg - pfv0->lg ) * scale + 0.5;
164  out->lb = pfv0->lb + ( pfv1->lb - pfv0->lb ) * scale + 0.5;
165 #endif
166  }
167  else
168  {
169  scale = (float)(r_refdef.aliasvrect.y - pfv1->v) /
170  (pfv0->v - pfv1->v);
171  out->u = pfv1->u + ( pfv0->u - pfv1->u ) * scale + 0.5;
172  out->v = pfv1->v + ( pfv0->v - pfv1->v ) * scale + 0.5;
173  out->s = pfv1->s + ( pfv0->s - pfv1->s ) * scale + 0.5;
174  out->t = pfv1->t + ( pfv0->t - pfv1->t ) * scale + 0.5;
175  out->l = pfv1->l + ( pfv0->l - pfv1->l ) * scale + 0.5;
176  out->zi = pfv1->zi + ( pfv0->zi - pfv1->zi) * scale + 0.5;
177 #ifdef COLMODEL
178  out->lr = pfv1->lr + ( pfv0->lr - pfv1->lr ) * scale + 0.5;
179  out->lg = pfv1->lg + ( pfv0->lg - pfv1->lg ) * scale + 0.5;
180  out->lb = pfv1->lb + ( pfv0->lb - pfv1->lb ) * scale + 0.5;
181 #endif
182  }
183 }

Referenced by R_AliasClipTriangle(), and R_AliasClipTriangleRGB().

◆ R_Alias_clip_z()

void R_Alias_clip_z ( finalvert_t pfv0,
finalvert_t pfv1,
finalvert_t out 
)

Definition at line 44 of file r_aclip.c.

45 {
46  float scale;
47 
48  scale = (ALIAS_Z_CLIP_PLANE - pfv0->xyz[2]) /
49  (pfv1->xyz[2] - pfv0->xyz[2]);
50 
51  out->xyz[0] = pfv0->xyz[0] + (pfv1->xyz[0] - pfv0->xyz[0]) * scale;
52  out->xyz[1] = pfv0->xyz[1] + (pfv1->xyz[1] - pfv0->xyz[1]) * scale;
53  out->xyz[2] = ALIAS_Z_CLIP_PLANE;
54 
55  out->s = pfv0->s + (pfv1->s - pfv0->s) * scale;
56  out->t = pfv0->t + (pfv1->t - pfv0->t) * scale;
57  out->l = pfv0->l + (pfv1->l - pfv0->l) * scale;
58 //qb: colored lighting from leilei
59  out->lr = pfv0->lr + (pfv1->lr - pfv0->lr) * scale;
60  out->lg = pfv0->lg + (pfv1->lg - pfv0->lg) * scale;
61  out->lb = pfv0->lb + (pfv1->lb - pfv0->lb) * scale;
62 
64 }

Referenced by R_AliasClipTriangle(), and R_AliasClipTriangleRGB().

◆ R_AliasClip()

int R_AliasClip ( finalvert_t in,
finalvert_t out,
int  flag,
int  count,
void(*)(finalvert_t *pfv0, finalvert_t *pfv1, finalvert_t *out)  clip 
)

Definition at line 226 of file r_aclip.c.

228 {
229  int i,j,k;
230  int flags, oldflags;
231 
232  j = count-1;
233  k = 0;
234  for (i=0 ; i<count ; j = i, i++)
235  {
236  oldflags = in[j].flags & flag;
237  flags = in[i].flags & flag;
238 
239  if (flags && oldflags)
240  continue;
241  if (oldflags ^ flags)
242  {
243  clip (&in[j], &in[i], &out[k]);
244  out[k].flags = 0;
245  if (out[k].u < r_refdef.aliasvrect.x)
246  out[k].flags |= ALIAS_LEFT_CLIP;
247  if (out[k].v < r_refdef.aliasvrect.y)
248  out[k].flags |= ALIAS_TOP_CLIP;
249  if (out[k].u > r_refdef.aliasvrectright)
250  out[k].flags |= ALIAS_RIGHT_CLIP;
251  if (out[k].v > r_refdef.aliasvrectbottom)
252  out[k].flags |= ALIAS_BOTTOM_CLIP;
253  k++;
254  }
255  if (!flags)
256  {
257  out[k] = in[i];
258  k++;
259  }
260  }
261 
262  return k;
263 }

Referenced by R_AliasClipTriangle(), and R_AliasClipTriangleRGB().

◆ R_AliasClipTriangle()

void R_AliasClipTriangle ( finalvert_t index0,
finalvert_t index1,
finalvert_t index2 
)

Definition at line 271 of file r_aclip.c.

272 {
273  int i, k, pingpong;
274  unsigned clipflags;
275 
276 // copy vertexes and fix seam texture coordinates
277  fv[0][0] = *index0;
278  fv[0][1] = *index1;
279  fv[0][2] = *index2;
280 
281 // clip
282  clipflags = fv[0][0].flags | fv[0][1].flags | fv[0][2].flags;
283 
284  if (clipflags & ALIAS_Z_CLIP)
285  {
286  k = R_AliasClip (fv[0], fv[1], ALIAS_Z_CLIP, 3, R_Alias_clip_z);
287  if (k == 0)
288  return;
289 
290  pingpong = 1;
291  clipflags = fv[1][0].flags | fv[1][1].flags | fv[1][2].flags;
292  }
293  else
294  {
295  pingpong = 0;
296  k = 3;
297  }
298 
299  if (clipflags & ALIAS_LEFT_CLIP)
300  {
301  k = R_AliasClip (fv[pingpong], fv[pingpong ^ 1],
303  if (k == 0)
304  return;
305 
306  pingpong ^= 1;
307  }
308 
309  if (clipflags & ALIAS_RIGHT_CLIP)
310  {
311  k = R_AliasClip (fv[pingpong], fv[pingpong ^ 1],
313  if (k == 0)
314  return;
315 
316  pingpong ^= 1;
317  }
318 
319  if (clipflags & ALIAS_BOTTOM_CLIP)
320  {
321  k = R_AliasClip (fv[pingpong], fv[pingpong ^ 1],
323  if (k == 0)
324  return;
325 
326  pingpong ^= 1;
327  }
328 
329  if (clipflags & ALIAS_TOP_CLIP)
330  {
331  k = R_AliasClip (fv[pingpong], fv[pingpong ^ 1],
333  if (k == 0)
334  return;
335 
336  pingpong ^= 1;
337  }
338 
339  for (i=0 ; i<k ; i++)
340  {
341  if (fv[pingpong][i].u < r_refdef.aliasvrect.x)
342  fv[pingpong][i].u = r_refdef.aliasvrect.x;
343  else if (fv[pingpong][i].u > r_refdef.aliasvrectright)
344  fv[pingpong][i].u = r_refdef.aliasvrectright;
345 
346  if (fv[pingpong][i].v < r_refdef.aliasvrect.y)
347  fv[pingpong][i].v = r_refdef.aliasvrect.y;
348  else if (fv[pingpong][i].v > r_refdef.aliasvrectbottom)
349  fv[pingpong][i].v = r_refdef.aliasvrectbottom;
350 
351  fv[pingpong][i].flags = 0;
352  }
353 
354 // draw triangles
355  for (i=1 ; i<k-1 ; i++)
356  {
357  aliastriangleparms.a = &fv[pingpong][0];
358  aliastriangleparms.b = &fv[pingpong][i];
359  aliastriangleparms.c = &fv[pingpong][i+1];
360  R_DrawTriangle();
361  }
362 }

Referenced by R_AliasPreparePoints().

◆ R_AliasClipTriangleRGB()

void R_AliasClipTriangleRGB ( finalvert_t index0,
finalvert_t index1,
finalvert_t index2 
)

Definition at line 372 of file r_aclip.c.

373 {
374  int i, k, pingpong;
375  unsigned clipflags;
376 
377 // copy vertexes and fix seam texture coordinates
378  fv[0][0] = *index0;
379  fv[0][1] = *index1;
380  fv[0][2] = *index2;
381 
382 // clip
383  clipflags = fv[0][0].flags | fv[0][1].flags | fv[0][2].flags;
384 
385  if (clipflags & ALIAS_Z_CLIP)
386  {
387  k = R_AliasClip (fv[0], fv[1], ALIAS_Z_CLIP, 3, R_Alias_clip_z);
388  if (k == 0)
389  return;
390 
391  pingpong = 1;
392  clipflags = fv[1][0].flags | fv[1][1].flags | fv[1][2].flags;
393  }
394  else
395  {
396  pingpong = 0;
397  k = 3;
398  }
399 
400  if (clipflags & ALIAS_LEFT_CLIP)
401  {
402  k = R_AliasClip (fv[pingpong], fv[pingpong ^ 1],
404  if (k == 0)
405  return;
406 
407  pingpong ^= 1;
408  }
409 
410  if (clipflags & ALIAS_RIGHT_CLIP)
411  {
412  k = R_AliasClip (fv[pingpong], fv[pingpong ^ 1],
414  if (k == 0)
415  return;
416 
417  pingpong ^= 1;
418  }
419 
420  if (clipflags & ALIAS_BOTTOM_CLIP)
421  {
422  k = R_AliasClip (fv[pingpong], fv[pingpong ^ 1],
424  if (k == 0)
425  return;
426 
427  pingpong ^= 1;
428  }
429 
430  if (clipflags & ALIAS_TOP_CLIP)
431  {
432  k = R_AliasClip (fv[pingpong], fv[pingpong ^ 1],
434  if (k == 0)
435  return;
436 
437  pingpong ^= 1;
438  }
439 
440  for (i=0 ; i<k ; i++)
441  {
442  if (fv[pingpong][i].u < r_refdef.aliasvrect.x)
443  fv[pingpong][i].u = r_refdef.aliasvrect.x;
444  else if (fv[pingpong][i].u > r_refdef.aliasvrectright)
445  fv[pingpong][i].u = r_refdef.aliasvrectright;
446 
447  if (fv[pingpong][i].v < r_refdef.aliasvrect.y)
448  fv[pingpong][i].v = r_refdef.aliasvrect.y;
449  else if (fv[pingpong][i].v > r_refdef.aliasvrectbottom)
450  fv[pingpong][i].v = r_refdef.aliasvrectbottom;
451 
452  fv[pingpong][i].flags = 0;
453  }
454 
455 // draw triangles
456  for (i=1 ; i<k-1 ; i++)
457  {
458  aliastriangleparms.a = &fv[pingpong][0];
459  aliastriangleparms.b = &fv[pingpong][i];
460  aliastriangleparms.c = &fv[pingpong][i+1];
461  R_DrawTriangle();
462  }
463 }

Referenced by R_AliasPreparePoints().

◆ R_AliasProjectAndClipTestFinalVert()

void R_AliasProjectAndClipTestFinalVert ( finalvert_t fv)

Definition at line 813 of file r_alias.c.

814 {
815  float zi;
816  float x, y, z;
817 
818  // project points
819  x = fv->xyz[0];
820  y = fv->xyz[1];
821  z = fv->xyz[2];
822  zi = 1.0 / z;
823 
824  fv->zi = zi * s_ziscale;
825 
826  fv->u = (x * aliasxscale * zi) + aliasxcenter;
827  fv->v = (y * aliasyscale * zi) + aliasycenter;
828 
829  if (fv->u < r_refdef.aliasvrect.x)
830  fv->flags |= ALIAS_LEFT_CLIP;
831  if (fv->v < r_refdef.aliasvrect.y)
832  fv->flags |= ALIAS_TOP_CLIP;
833  if (fv->u > r_refdef.aliasvrectright)
834  fv->flags |= ALIAS_RIGHT_CLIP;
835  if (fv->v > r_refdef.aliasvrectbottom)
836  fv->flags |= ALIAS_BOTTOM_CLIP;
837 }

Referenced by R_Alias_clip_z(), and R_AliasTransformFinalVerts().

Variable Documentation

◆ fv

finalvert_t fv[2][8]
static

Definition at line 24 of file r_aclip.c.

Referenced by R_AliasClipTriangle(), and R_AliasClipTriangleRGB().

R_Alias_clip_bottom
void R_Alias_clip_bottom(finalvert_t *pfv0, finalvert_t *pfv1, finalvert_t *out)
Definition: r_aclip.c:186
ALIAS_Z_CLIP_PLANE
#define ALIAS_Z_CLIP_PLANE
Definition: r_local.h:235
finalvert_s::lr
int lr
Definition: r_local.h:300
finalvert_s::u
int u
Definition: r_local.h:293
aliasxcenter
float aliasxcenter
Definition: r_local.h:762
aliastriangleparms_t::b
finalvert_t * b
Definition: r_local.h:772
R_Alias_clip_z
void R_Alias_clip_z(finalvert_t *pfv0, finalvert_t *pfv1, finalvert_t *out)
Definition: r_aclip.c:44
v
GLdouble v
Definition: qgl_win.c:143
x
GLint GLenum GLint x
Definition: qgl_win.c:116
R_AliasClip
int R_AliasClip(finalvert_t *in, finalvert_t *out, int flag, int count, void(*clip)(finalvert_t *pfv0, finalvert_t *pfv1, finalvert_t *out))
Definition: r_aclip.c:226
z
GLdouble GLdouble z
Definition: qgl_win.c:283
i
int i
Definition: q_shared.c:305
fv
float fv
Definition: r_edge.c:75
finalvert_s::t
int t
Definition: r_local.h:293
R_DrawTriangle
void R_DrawTriangle(void)
Definition: r_polyse.c:218
R_AliasProjectAndClipTestFinalVert
void R_AliasProjectAndClipTestFinalVert(finalvert_t *fv)
Definition: r_alias.c:813
ALIAS_Z_CLIP
#define ALIAS_Z_CLIP
Definition: r_local.h:215
j
GLint j
Definition: qgl_win.c:150
aliasxscale
float aliasxscale
Definition: r_main.c:85
finalvert_s::v
int v
Definition: r_local.h:293
fv
static finalvert_t fv[2][8]
Definition: r_aclip.c:24
aliasycenter
float aliasycenter
Definition: r_local.h:762
R_Alias_clip_right
void R_Alias_clip_right(finalvert_t *pfv0, finalvert_t *pfv1, finalvert_t *out)
Definition: r_aclip.c:108
u
static int u
Definition: r_part.c:472
R_Alias_clip_left
void R_Alias_clip_left(finalvert_t *pfv0, finalvert_t *pfv1, finalvert_t *out)
Definition: r_aclip.c:69
ALIAS_BOTTOM_CLIP
#define ALIAS_BOTTOM_CLIP
Definition: r_local.h:214
oldrefdef_t::aliasvrectbottom
int aliasvrectbottom
Definition: r_local.h:122
finalvert_s::xyz
float xyz[3]
Definition: r_local.h:297
vrect_s::x
int x
Definition: vid.h:24
finalvert_s::zi
int zi
Definition: r_local.h:295
y
GLint y
Definition: qgl_win.c:115
aliastriangleparms_t::a
finalvert_t * a
Definition: r_local.h:772
oldrefdef_t::aliasvrectright
int aliasvrectright
Definition: r_local.h:122
R_Alias_clip_top
void R_Alias_clip_top(finalvert_t *pfv0, finalvert_t *pfv1, finalvert_t *out)
Definition: r_aclip.c:147
ALIAS_LEFT_CLIP
#define ALIAS_LEFT_CLIP
Definition: r_local.h:211
finalvert_s::s
int s
Definition: r_local.h:293
ALIAS_TOP_CLIP
#define ALIAS_TOP_CLIP
Definition: r_local.h:212
finalvert_s::flags
int flags
Definition: r_local.h:296
aliastriangleparms_t::c
finalvert_t * c
Definition: r_local.h:772
aliasyscale
float aliasyscale
Definition: r_local.h:762
aliastriangleparms
aliastriangleparms_t aliastriangleparms
Definition: r_polyse.c:62
finalvert_s::lb
int lb
Definition: r_local.h:300
s_ziscale
static float s_ziscale
Definition: r_alias.c:58
finalvert_s::lg
int lg
Definition: r_local.h:300
oldrefdef_t::aliasvrect
vrect_t aliasvrect
Definition: r_local.h:120
finalvert_s::l
int l
Definition: r_local.h:294
zi
static float zi
Definition: r_part.c:469
r_refdef
oldrefdef_t r_refdef
Definition: r_main.c:80
count
GLint GLsizei count
Definition: qgl_win.c:128
vrect_s::y
int y
Definition: vid.h:24
ALIAS_RIGHT_CLIP
#define ALIAS_RIGHT_CLIP
Definition: r_local.h:213