LinesComponent¶
The data behind Lines. In Lua, get it with lines:getLinesComponent().
Properties¶
Writing a component field
Some fields take effect only once the matching needUpdate… flag is set too. See
Writing components directly.
| Name | Languages |
|---|---|
loaded |
C++ | Lua (read-only) |
lines |
C++ | Lua |
maxLines |
C++ | Lua (read-only) |
customShader |
C++ | Lua |
needUpdateBuffer |
C++ | Lua |
needReload |
C++ | Lua |
lines is a list of LineData. Set needUpdateBuffer after assigning it. Only the first maxLines are drawn; raise it with Lines.maxLines. Set needReload after changing customShader. In Lua, lists are copies: assign the changed table back.