1. Anders Ruud
  2. love
  3. Issues

Issues

Issue #1187 resolved

Add love.graphics.lines for batch-drawing unconnected lines

airstruck
created an issue

This would work just like love.graphics.line, except it would take an arbitrary number of coordinate-pair-pairs. It should also have an alternate form that takes a table (sequence) of values instead of varargs, in keeping with other parts of the API.

Comments (8)

  1. Alex Szpakowski

    A hypothetical line batch should be able to do both: each add call would add a series of connected lines, and they wouldn't be connected to lines added with previous add calls.

    Implementing love.graphics.lines is probably a lot easier than implementing a line batch though.

  2. Alex Szpakowski

    commit fbcbffe adds automatic batching where possible for several things including lines. Is this enough for your purposes, or would a dedicated love.graphics.lines function still be useful to you? (And if so, why?)

  3. airstruck reporter

    Sorry for the late reply, haven't looked at issue tracker in a while. Auto batching looks pretty awesome, will check it out. I can't think of any case offhand where manual batching would be preferable to auto batching.

  4. Log in to comment