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) |
|
void | R_AliasClipTriangleRGB (finalvert_t *index0, finalvert_t *index1, finalvert_t *index2) |
|
◆ R_Alias_clip_bottom()
Definition at line 186 of file r_aclip.c.
191 if (pfv0->
v >= pfv1->
v)
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;
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;
Referenced by R_AliasClipTriangle(), and R_AliasClipTriangleRGB().
◆ R_Alias_clip_left()
Definition at line 69 of file r_aclip.c.
73 if (pfv0->
v >= pfv1->
v )
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;
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;
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;
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;
Referenced by R_AliasClipTriangle(), and R_AliasClipTriangleRGB().
◆ R_Alias_clip_right()
Definition at line 108 of file r_aclip.c.
112 if ( pfv0->
v >= pfv1->
v )
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;
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;
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;
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;
Referenced by R_AliasClipTriangle(), and R_AliasClipTriangleRGB().
◆ R_Alias_clip_top()
Definition at line 147 of file r_aclip.c.
151 if (pfv0->
v >= pfv1->
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;
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;
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;
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;
Referenced by R_AliasClipTriangle(), and R_AliasClipTriangleRGB().
◆ R_Alias_clip_z()
◆ R_AliasClip()
◆ R_AliasClipTriangle()
◆ R_AliasClipTriangleRGB()
◆ R_AliasProjectAndClipTestFinalVert()
◆ fv