Skip to content

Drawlist usage example unclear? (And nil value) #11

@nullset2

Description

@nullset2

Maybe I am just being dumb, but I am trying the README example to draw primitives (which I know for a fact can be done with the Lua Bindings):

imgui.DrawList_AddLine(
        imgui.DrawList_AddLine(0, 0, 100, 100, 0xFF0000FF, 2)

And it errors out (using it on Love2d, but to my understanding this should be irrelevant):

Error: Syntax error: main.lua:27: ')' expected (to close '(' at line 25) near 'imgui'

If I close out the parens it turns out that this function isn't even present:

attempt to call field 'DrawList_AddLine' (a nil value)

What should I be doing here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions