Quake II RTX doxygen
1.0 dev
|
|
Go to the documentation of this file.
35 out->
xyz[0] = pfv0->
xyz[0] + (pfv1->
xyz[0] - pfv0->
xyz[0]) * scale;
36 out->
xyz[1] = pfv0->
xyz[1] + (pfv1->
xyz[1] - pfv0->
xyz[1]) * scale;
39 out->
s = pfv0->
s + (pfv1->
s - pfv0->
s) * scale;
40 out->
t = pfv0->
t + (pfv1->
t - pfv0->
t) * scale;
41 out->
l = pfv0->
l + (pfv1->
l - pfv0->
l) * scale;
50 if (pfv0->
v >= pfv1->
v) {
52 out->
u = pfv0->
u + (pfv1->
u - pfv0->
u) * scale + 0.5;
53 out->
v = pfv0->
v + (pfv1->
v - pfv0->
v) * scale + 0.5;
54 out->
s = pfv0->
s + (pfv1->
s - pfv0->
s) * scale + 0.5;
55 out->
t = pfv0->
t + (pfv1->
t - pfv0->
t) * scale + 0.5;
56 out->
l = pfv0->
l + (pfv1->
l - pfv0->
l) * scale + 0.5;
57 out->
zi = pfv0->
zi + (pfv1->
zi - pfv0->
zi) * scale + 0.5;
60 out->
u = pfv1->
u + (pfv0->
u - pfv1->
u) * scale + 0.5;
61 out->
v = pfv1->
v + (pfv0->
v - pfv1->
v) * scale + 0.5;
62 out->
s = pfv1->
s + (pfv0->
s - pfv1->
s) * scale + 0.5;
63 out->
t = pfv1->
t + (pfv0->
t - pfv1->
t) * scale + 0.5;
64 out->
l = pfv1->
l + (pfv0->
l - pfv1->
l) * scale + 0.5;
65 out->
zi = pfv1->
zi + (pfv0->
zi - pfv1->
zi) * scale + 0.5;
73 if (pfv0->
v >= pfv1->
v) {
75 out->
u = pfv0->
u + (pfv1->
u - pfv0->
u) * scale + 0.5;
76 out->
v = pfv0->
v + (pfv1->
v - pfv0->
v) * scale + 0.5;
77 out->
s = pfv0->
s + (pfv1->
s - pfv0->
s) * scale + 0.5;
78 out->
t = pfv0->
t + (pfv1->
t - pfv0->
t) * scale + 0.5;
79 out->
l = pfv0->
l + (pfv1->
l - pfv0->
l) * scale + 0.5;
80 out->
zi = pfv0->
zi + (pfv1->
zi - pfv0->
zi) * scale + 0.5;
83 out->
u = pfv1->
u + (pfv0->
u - pfv1->
u) * scale + 0.5;
84 out->
v = pfv1->
v + (pfv0->
v - pfv1->
v) * scale + 0.5;
85 out->
s = pfv1->
s + (pfv0->
s - pfv1->
s) * scale + 0.5;
86 out->
t = pfv1->
t + (pfv0->
t - pfv1->
t) * scale + 0.5;
87 out->
l = pfv1->
l + (pfv0->
l - pfv1->
l) * scale + 0.5;
88 out->
zi = pfv1->
zi + (pfv0->
zi - pfv1->
zi) * scale + 0.5;
96 if (pfv0->
v >= pfv1->
v) {
98 out->
u = pfv0->
u + (pfv1->
u - pfv0->
u) * scale + 0.5;
99 out->
v = pfv0->
v + (pfv1->
v - pfv0->
v) * scale + 0.5;
100 out->
s = pfv0->
s + (pfv1->
s - pfv0->
s) * scale + 0.5;
101 out->
t = pfv0->
t + (pfv1->
t - pfv0->
t) * scale + 0.5;
102 out->
l = pfv0->
l + (pfv1->
l - pfv0->
l) * scale + 0.5;
103 out->
zi = pfv0->
zi + (pfv1->
zi - pfv0->
zi) * scale + 0.5;
106 out->
u = pfv1->
u + (pfv0->
u - pfv1->
u) * scale + 0.5;
107 out->
v = pfv1->
v + (pfv0->
v - pfv1->
v) * scale + 0.5;
108 out->
s = pfv1->
s + (pfv0->
s - pfv1->
s) * scale + 0.5;
109 out->
t = pfv1->
t + (pfv0->
t - pfv1->
t) * scale + 0.5;
110 out->
l = pfv1->
l + (pfv0->
l - pfv1->
l) * scale + 0.5;
111 out->
zi = pfv1->
zi + (pfv0->
zi - pfv1->
zi) * scale + 0.5;
120 if (pfv0->
v >= pfv1->
v) {
123 out->
u = pfv0->
u + (pfv1->
u - pfv0->
u) * scale + 0.5;
124 out->
v = pfv0->
v + (pfv1->
v - pfv0->
v) * scale + 0.5;
125 out->
s = pfv0->
s + (pfv1->
s - pfv0->
s) * scale + 0.5;
126 out->
t = pfv0->
t + (pfv1->
t - pfv0->
t) * scale + 0.5;
127 out->
l = pfv0->
l + (pfv1->
l - pfv0->
l) * scale + 0.5;
128 out->
zi = pfv0->
zi + (pfv1->
zi - pfv0->
zi) * scale + 0.5;
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;
149 for (i = 0; i < count; j = i, i++) {
150 oldflags = in[j].
flags & flag;
151 flags = in[i].
flags & flag;
153 if (flags && oldflags)
155 if (oldflags ^ flags) {
156 clip(&in[j], &in[i], &out[k]);
195 clipflags =
fv[0][0].flags |
fv[0][1].flags |
fv[0][2].flags;
203 clipflags =
fv[1][0].flags |
fv[1][1].flags |
fv[1][2].flags;
245 for (i = 0; i < k; i++) {
256 fv[pingpong][i].flags = 0;
260 for (i = 1; i < k - 1; i++) {
#define ALIAS_Z_CLIP_PLANE
static void R_Alias_clip_top(finalvert_t *pfv0, finalvert_t *pfv1, finalvert_t *out)
void R_AliasClipTriangle(finalvert_t *index0, finalvert_t *index1, finalvert_t *index2)
static void R_Alias_clip_right(finalvert_t *pfv0, finalvert_t *pfv1, finalvert_t *out)
#define ALIAS_BOTTOM_CLIP
static 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_DrawTriangle(void)
static void R_Alias_clip_bottom(finalvert_t *pfv0, finalvert_t *pfv1, finalvert_t *out)
static void R_Alias_clip_z(finalvert_t *pfv0, finalvert_t *pfv1, finalvert_t *out)
void R_AliasProjectAndClipTestFinalVert(finalvert_t *fv)
aliastriangleparms_t aliastriangleparms
static void R_Alias_clip_left(finalvert_t *pfv0, finalvert_t *pfv1, finalvert_t *out)