Explorar el Código

One of the SpriteBatch::draw methods was passing the uv values in the wrong order.

Thanks puzzlefun for pointing this out.
http://www.gameplay3d.org/forums/viewtopic.php?f=7&t=246
Darryl Gough hace 13 años
padre
commit
3ce3fdcce0
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      gameplay/src/SpriteBatch.cpp

+ 1 - 1
gameplay/src/SpriteBatch.cpp

@@ -185,7 +185,7 @@ void SpriteBatch::draw(const Vector3& dst, const Rectangle& src, const Vector2&
     float u2 = u1 + _textureWidthRatio * src.width;
     float v2 = v1 - _textureHeightRatio * src.height;
 
-    draw(dst.x, dst.y, dst.z, scale.x, scale.y, u2, v2, u1, v1, color);
+    draw(dst.x, dst.y, dst.z, scale.x, scale.y, u1, v1, u2, v2, color);
 }
 
 void SpriteBatch::draw(const Vector3& dst, const Rectangle& src, const Vector2& scale, const Vector4& color,