scene_add_lines
---- 3D-view render sink. xyz is n_pts (x,y,z) triples; index arrays reference vertices by triple index. ----
Prototype
void (*scene_add_lines)(Yu3dSceneCtx*, const double* xyz, uint32_t n_pts, const uint32_t* segs, uint32_t n_segs, float r, float g, float b, float width)
Parameters
| Declaration | Name |
|---|---|
Yu3dSceneCtx* | — |
const double* xyz | xyz |
uint32_t n_pts | n_pts |
const uint32_t* segs | segs |
uint32_t n_segs | n_segs |
float r | r |
float g | g |
float b | b |
float width | width |
Returns
void
Same group (3D rendering)
Declared in sdk/include/yu3d_plugin.h. Reached through the host table: host->scene_add_lines(…). Guard with YU3D_HOST_HAS(host, scene_add_lines) if your plugin must also load in an older host.