35 #include "../gldrv/gl_globals.h"
52 static const unsigned char ani_up = 0x01;
70 using namespace VSFileSystem;
77 bool appear_near_by_radius,
86 bool appear_near_by_radius,
97 if (appear_near_by_radius)
106 f.
Fscanf(
"%f %f", &width, &height );
109 width = fabs( width*0.5F );
110 height = height*0.5F;
111 Load( f, 0, ismipmapped );
118 vector< Animation* >::iterator
i;
129 local_transformation.
p = p;
137 return local_transformation.
p;
183 for (i = animationdrawqueue.size()-1; i >= 0; i--) {
184 GFXColorf( animationdrawqueue[i]->mycolor );
186 if ( alphamaps != (animationdrawqueue[i]->options&
ani_alpha) ) {
187 alphamaps = (animationdrawqueue[i]->options&
ani_alpha);
191 animationdrawqueue[i]->CalculateOrientation( result );
193 <= -FLT_MAX) || (animationdrawqueue[i]->
Position()-campos).
Magnitude()-animationdrawqueue[i]->height > limit ) {
196 animationdrawqueue[i]->DrawNow( result );
197 animationdrawqueue[i] = 0;
202 while (i < static_cast<int>(animationdrawqueue.size()) && animationdrawqueue[i])
205 while ( i < static_cast<int>(animationdrawqueue.size()) ) {
206 while (i < static_cast<int>(animationdrawqueue.size()) && !animationdrawqueue[i])
208 while (i < static_cast<int>(animationdrawqueue.size()) && animationdrawqueue[i])
209 animationdrawqueue[j++] = animationdrawqueue[i++];
212 animationdrawqueue.resize( j );
230 (options&
ani_up) ? NULL : &local_transformation );
265 bool multitex = (numlayers > 1);
276 for (
size_t pass = 0; pass < numpasses; pass++) {
304 for (lyr = 0; lyr < numlayers; lyr++)
322 bool multitex = (numlayers > 1);
335 for (
size_t pass = 0; pass < numpasses; pass++)
359 for (lyr = 0; lyr < numlayers; lyr++)
367 bool doitagain =
false;
371 bool multitex = (numlayers > 1);
389 for (
size_t pass = 0; pass < numpasses; pass++)
447 for (lyr = 0; lyr < numlayers; lyr++)
471 *(height > width ? height : width) ) < too_far_dist*
g_game.
zfar )