@@ -342,8 +342,8 @@ namespace tgx
342342 {
343343 const float xx = tx * icw;
344344 const float yy = ty * icw;
345- const int ttx = ( int ) floorf (xx);
346- const int tty = ( int ) floorf (yy);
345+ const int ttx = lfloorf (xx);
346+ const int tty = lfloorf (yy);
347347 const float ax = xx - ttx;
348348 const float ay = yy - tty;
349349 const int minx = (TEXTURE_WRAP ? (ttx & (texsize_x_mm)) : shaderclip (ttx, texsize_x_mm));
@@ -505,8 +505,8 @@ namespace tgx
505505 {
506506 const float xx = tx * icw;
507507 const float yy = ty * icw;
508- const int ttx = ( int ) floorf (xx);
509- const int tty = ( int ) floorf (yy);
508+ const int ttx = lfloorf (xx);
509+ const int tty = lfloorf (yy);
510510 const float ax = xx - ttx;
511511 const float ay = yy - tty;
512512 const int minx = (TEXTURE_WRAP ? (ttx & (texsize_x_mm)) : shaderclip (ttx, texsize_x_mm));
@@ -911,8 +911,8 @@ namespace tgx
911911 {
912912 const float xx = tx * icw;
913913 const float yy = ty * icw;
914- const int ttx = ( int ) floorf (xx);
915- const int tty = ( int ) floorf (yy);
914+ const int ttx = lfloorf (xx);
915+ const int tty = lfloorf (yy);
916916 const float ax = xx - ttx;
917917 const float ay = yy - tty;
918918 const int minx = (TEXTURE_WRAP ? (ttx & (texsize_x_mm)) : shaderclip (ttx, texsize_x_mm));
@@ -1088,8 +1088,8 @@ namespace tgx
10881088 {
10891089 const float xx = tx * icw;
10901090 const float yy = ty * icw;
1091- const int ttx = ( int ) floorf (xx);
1092- const int tty = ( int ) floorf (yy);
1091+ const int ttx = lfloorf (xx);
1092+ const int tty = lfloorf (yy);
10931093 const float ax = xx - ttx;
10941094 const float ay = yy - tty;
10951095 const int minx = (TEXTURE_WRAP ? (ttx & (texsize_x_mm)) : shaderclip (ttx, texsize_x_mm));
@@ -1238,8 +1238,8 @@ namespace tgx
12381238 {
12391239 const float xx = tx;
12401240 const float yy = ty;
1241- const int ttx = ( int ) floorf (xx);
1242- const int tty = ( int ) floorf (yy);
1241+ const int ttx = lfloorf (xx);
1242+ const int tty = lfloorf (yy);
12431243 const float ax = xx - ttx;
12441244 const float ay = yy - tty;
12451245 const int minx = (TEXTURE_WRAP ? (ttx & (texsize_x_mm)) : shaderclip (ttx, texsize_x_mm));
@@ -1391,8 +1391,8 @@ namespace tgx
13911391 {
13921392 const float xx = tx;
13931393 const float yy = ty;
1394- const int ttx = ( int ) floorf (xx);
1395- const int tty = ( int ) floorf (yy);
1394+ const int ttx = lfloorf (xx);
1395+ const int tty = lfloorf (yy);
13961396 const float ax = xx - ttx;
13971397 const float ay = yy - tty;
13981398 const int minx = (TEXTURE_WRAP ? (ttx & (texsize_x_mm)) : shaderclip (ttx, texsize_x_mm));
@@ -1560,8 +1560,8 @@ namespace tgx
15601560 {
15611561 const float xx = tx;
15621562 const float yy = ty;
1563- const int ttx = ( int ) floorf (xx);
1564- const int tty = ( int ) floorf (yy);
1563+ const int ttx = lfloorf (xx);
1564+ const int tty = lfloorf (yy);
15651565 const float ax = xx - ttx;
15661566 const float ay = yy - tty;
15671567 const int minx = (TEXTURE_WRAP ? (ttx & (texsize_x_mm)) : shaderclip (ttx, texsize_x_mm));
@@ -1737,8 +1737,8 @@ namespace tgx
17371737 {
17381738 const float xx = tx;
17391739 const float yy = ty;
1740- const int ttx = ( int ) floorf (xx);
1741- const int tty = ( int ) floorf ( yy);
1740+ const int ttx = lfloorf (xx);
1741+ const int tty = lfloorf ( yy);
17421742 const float ax = xx - ttx;
17431743 const float ay = yy - tty;
17441744 const int minx = (TEXTURE_WRAP ? (ttx & (texsize_x_mm)) : shaderclip (ttx, texsize_x_mm));
@@ -2192,8 +2192,8 @@ namespace tgx
21922192 {
21932193 const float xx = tx;
21942194 const float yy = ty;
2195- const int ttx = ( int ) floorf (xx);
2196- const int tty = ( int ) floorf (yy);
2195+ const int ttx = lfloorf (xx);
2196+ const int tty = lfloorf (yy);
21972197 const float ax = xx - ttx;
21982198 const float ay = yy - tty;
21992199
@@ -2387,8 +2387,8 @@ namespace tgx
23872387 {
23882388 const float xx = tx;
23892389 const float yy = ty;
2390- const int ttx = ( int ) floorf (xx);
2391- const int tty = ( int ) floorf (yy);
2390+ const int ttx = lfloorf (xx);
2391+ const int tty = lfloorf (yy);
23922392 const float ax = xx - ttx;
23932393 const float ay = yy - tty;
23942394
0 commit comments