yucad3d

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

DeclarationName
Yu3dPlanCtx*
double x0x0
double y0y0
double x1x1
double y1y1
float rr
float gg
float bb
int pickablepickable

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.