plan_add_segment
---- plan-view render sink (world metres; colours linear 0..1; _px are device-independent screen pixels, zoom-invariant) ----
Prototype
void (*plan_add_segment)(Yu3dPlanCtx*, double x0, double y0, double x1, double y1, float r, float g, float b, int pickable)
Parameters
| Declaration | Name |
|---|---|
Yu3dPlanCtx* | — |
double x0 | x0 |
double y0 | y0 |
double x1 | x1 |
double y1 | y1 |
float r | r |
float g | g |
float b | b |
int pickable | pickable |
Returns
void
Same group (Plan rendering)
plan_add_marker · plan_add_text · plan_world_per_pixel
Declared in sdk/include/yu3d_plugin.h. Reached through the host table: host->plan_add_segment(…). Guard with YU3D_HOST_HAS(host, plan_add_segment) if your plugin must also load in an older host.