Rename some internal functionality to better match what it actually is.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2017-08-25 22:42:03 -03:00
parent 25afd740b4
commit 0b68c92570
6 changed files with 81 additions and 81 deletions
+6 -6
View File
@@ -374,13 +374,13 @@ void Polyline::draw(love::graphics::Graphics *gfx)
const Matrix4 &t = gfx->getTransform();
bool is2D = t.isAffine2DTransform();
Graphics::StreamDrawRequest req;
req.formats[0] = vertex::getSinglePositionFormat(is2D);
req.formats[1] = vertex::CommonFormat::RGBAub;
req.indexMode = triangle_mode;
req.vertexCount = total_vertex_count;
Graphics::StreamDrawCommand cmd;
cmd.formats[0] = vertex::getSinglePositionFormat(is2D);
cmd.formats[1] = vertex::CommonFormat::RGBAub;
cmd.indexMode = triangle_mode;
cmd.vertexCount = total_vertex_count;
Graphics::StreamVertexData data = gfx->requestStreamDraw(req);
Graphics::StreamVertexData data = gfx->requestStreamDraw(cmd);
if (is2D)
t.transformXY((Vector2 *) data.stream[0], vertices, total_vertex_count);