PointsComponent¶
The data behind Points. In Lua, get it with points:getPointsComponent().
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) |
points |
C++ | Lua |
numFramesRect |
C++ | Lua (read-only) |
maxPoints |
C++ | Lua (read-only) |
numVisible |
C++ | Lua (read-only) |
aabb |
C++ | Lua (read-only) |
customShader |
C++ | Lua |
texture |
C++ | Lua |
transparent |
C++ | Lua |
autoTransparency |
C++ | Lua |
needUpdate |
C++ | Lua |
needUpdateBuffer |
C++ | Lua |
needUpdateTexture |
C++ | Lua |
needReload |
C++ | Lua |
points is a list of PointData. Set needUpdate after assigning it. Only the first maxPoints are drawn; raise it with Points.maxPoints. Set needReload after changing customShader. In Lua, lists are copies: assign the changed table back.