equal
deleted
inserted
replaced
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; |