hedgewars/uRender.pas
changeset 6322 b310f0bc8dde
parent 6318 ca12368acc16
child 6323 c1aa6a3c84a7
equal deleted inserted replaced
6321:5a0416e5a6de 6322:b310f0bc8dde
   157 glScalef(Scale, Scale, 1);
   157 glScalef(Scale, Scale, 1);
   158 
   158 
   159 // Any reason for this call? And why only in t direction, not s?
   159 // Any reason for this call? And why only in t direction, not s?
   160 //glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
   160 //glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
   161 
   161 
   162 hw:= w div Dir;
   162 hw:= w div (2 div Dir);
   163 
   163 
   164 nx:= round(Texture^.w / w); // number of horizontal frames
   164 nx:= round(Texture^.w / w); // number of horizontal frames
   165 ny:= round(Texture^.h / h); // number of vertical frames
   165 ny:= round(Texture^.h / h); // number of vertical frames
   166 
   166 
   167 ft:= (Frame mod ny) * Texture^.ry / ny;
   167 ft:= (Frame mod ny) * Texture^.ry / ny;