Issues

Issue #79 wontfix

Allow the function called by Framebuffer:renderTo() to accept arguments

Robin Wellner
created an issue

Basically, make this possible: framebuffer:renderTo(renderFunc, lines). I really miss this for the RichText library.

Comments (7)

  1. Bart van Strien
    • changed status to open

    It actually was in the first draft, it was scrapped later because it seemed unnecessary, what is the reason you can't just set the render target, call the func, and set it back?

  2. Robin Wellner reporter

    No reason, it's just less elegant.

    Btw, the thing I did now was making lines a module-wide local, which also isn't very clean.

    Perhaps other people disagree, but I still think having it accept other arguments is useful.

  3. Robin Wellner reporter

    Yeah, but not the most elegant solution. Although I might prefer it to local globals.

    Anyway, if you want to implement it, please do; if not, that's okay.

  4. Log in to comment