Go to the source code of this file.
|
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) |
|
◆ R_Alias_clip_bottom()
Definition at line 152 of file r_aclip.c.
157 if (pfv0->
v >= pfv1->
v)
162 out->
u = pfv0->
u + ( pfv1->
u - pfv0->
u ) * scale + 0.5;
163 out->
v = pfv0->
v + ( pfv1->
v - pfv0->
v ) * scale + 0.5;
164 out->
s = pfv0->
s + ( pfv1->
s - pfv0->
s ) * scale + 0.5;
165 out->
t = pfv0->
t + ( pfv1->
t - pfv0->
t ) * scale + 0.5;
166 out->
l = pfv0->
l + ( pfv1->
l - pfv0->
l ) * scale + 0.5;
167 out->
zi = pfv0->
zi + ( pfv1->
zi - pfv0->
zi) * scale + 0.5;
174 out->
u = pfv1->
u + ( pfv0->
u - pfv1->
u ) * scale + 0.5;
175 out->
v = pfv1->
v + ( pfv0->
v - pfv1->
v ) * scale + 0.5;
176 out->
s = pfv1->
s + ( pfv0->
s - pfv1->
s ) * scale + 0.5;
177 out->
t = pfv1->
t + ( pfv0->
t - pfv1->
t ) * scale + 0.5;
178 out->
l = pfv1->
l + ( pfv0->
l - pfv1->
l ) * scale + 0.5;
179 out->
zi = pfv1->
zi + ( pfv0->
zi - pfv1->
zi) * scale + 0.5;
Referenced by R_AliasClipTriangle().
◆ R_Alias_clip_left()
Definition at line 65 of file r_aclip.c.
69 if (pfv0->
v >= pfv1->
v )
73 out->
u = pfv0->
u + ( pfv1->
u - pfv0->
u ) * scale + 0.5;
74 out->
v = pfv0->
v + ( pfv1->
v - pfv0->
v ) * scale + 0.5;
75 out->
s = pfv0->
s + ( pfv1->
s - pfv0->
s ) * scale + 0.5;
76 out->
t = pfv0->
t + ( pfv1->
t - pfv0->
t ) * scale + 0.5;
77 out->
l = pfv0->
l + ( pfv1->
l - pfv0->
l ) * scale + 0.5;
78 out->
zi = pfv0->
zi + ( pfv1->
zi - pfv0->
zi) * scale + 0.5;
84 out->
u = pfv1->
u + ( pfv0->
u - pfv1->
u ) * scale + 0.5;
85 out->
v = pfv1->
v + ( pfv0->
v - pfv1->
v ) * scale + 0.5;
86 out->
s = pfv1->
s + ( pfv0->
s - pfv1->
s ) * scale + 0.5;
87 out->
t = pfv1->
t + ( pfv0->
t - pfv1->
t ) * scale + 0.5;
88 out->
l = pfv1->
l + ( pfv0->
l - pfv1->
l ) * scale + 0.5;
89 out->
zi = pfv1->
zi + ( pfv0->
zi - pfv1->
zi) * scale + 0.5;
Referenced by R_AliasClipTriangle().
◆ R_Alias_clip_right()
Definition at line 94 of file r_aclip.c.
98 if ( pfv0->
v >= pfv1->
v )
101 (pfv1->
u - pfv0->
u );
102 out->
u = pfv0->
u + ( pfv1->
u - pfv0->
u ) * scale + 0.5;
103 out->
v = pfv0->
v + ( pfv1->
v - pfv0->
v ) * scale + 0.5;
104 out->
s = pfv0->
s + ( pfv1->
s - pfv0->
s ) * scale + 0.5;
105 out->
t = pfv0->
t + ( pfv1->
t - pfv0->
t ) * scale + 0.5;
106 out->
l = pfv0->
l + ( pfv1->
l - pfv0->
l ) * scale + 0.5;
107 out->
zi = pfv0->
zi + ( pfv1->
zi - pfv0->
zi) * scale + 0.5;
112 (pfv0->
u - pfv1->
u );
113 out->
u = pfv1->
u + ( pfv0->
u - pfv1->
u ) * scale + 0.5;
114 out->
v = pfv1->
v + ( pfv0->
v - pfv1->
v ) * scale + 0.5;
115 out->
s = pfv1->
s + ( pfv0->
s - pfv1->
s ) * scale + 0.5;
116 out->
t = pfv1->
t + ( pfv0->
t - pfv1->
t ) * scale + 0.5;
117 out->
l = pfv1->
l + ( pfv0->
l - pfv1->
l ) * scale + 0.5;
118 out->
zi = pfv1->
zi + ( pfv0->
zi - pfv1->
zi) * scale + 0.5;
Referenced by R_AliasClipTriangle().
◆ R_Alias_clip_top()
Definition at line 123 of file r_aclip.c.
127 if (pfv0->
v >= pfv1->
v)
131 out->
u = pfv0->
u + ( pfv1->
u - pfv0->
u ) * scale + 0.5;
132 out->
v = pfv0->
v + ( pfv1->
v - pfv0->
v ) * scale + 0.5;
133 out->
s = pfv0->
s + ( pfv1->
s - pfv0->
s ) * scale + 0.5;
134 out->
t = pfv0->
t + ( pfv1->
t - pfv0->
t ) * scale + 0.5;
135 out->
l = pfv0->
l + ( pfv1->
l - pfv0->
l ) * scale + 0.5;
136 out->
zi = pfv0->
zi + ( pfv1->
zi - pfv0->
zi) * scale + 0.5;
142 out->
u = pfv1->
u + ( pfv0->
u - pfv1->
u ) * scale + 0.5;
143 out->
v = pfv1->
v + ( pfv0->
v - pfv1->
v ) * scale + 0.5;
144 out->
s = pfv1->
s + ( pfv0->
s - pfv1->
s ) * scale + 0.5;
145 out->
t = pfv1->
t + ( pfv0->
t - pfv1->
t ) * scale + 0.5;
146 out->
l = pfv1->
l + ( pfv0->
l - pfv1->
l ) * scale + 0.5;
147 out->
zi = pfv1->
zi + ( pfv0->
zi - pfv1->
zi) * scale + 0.5;
Referenced by R_AliasClipTriangle().
◆ R_Alias_clip_z()
Definition at line 44 of file r_aclip.c.
49 (pfv1->
xyz[2] - pfv0->
xyz[2]);
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;
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;
Referenced by R_AliasClipTriangle().
◆ R_AliasClip()
◆ R_AliasClipTriangle()
◆ R_AliasProjectAndClipTestFinalVert()
◆ fv