plan_add_text
plan-view render sink (world metres; colours linear 0..1; *_px are device-independent screen pixels, zoom-invariant)
This function shares its documentation with the rest of the Plan rendering group above.
Prototype
void (*plan_add_text)(Yu3dPlanCtx*, const char* text, double anchor_x, double anchor_y, float off_x_px, float off_y_px, float r, float g, float b)
Parameters
| Declaration | Name |
|---|---|
Yu3dPlanCtx* | — |
const char* text | text |
double anchor_x | anchor_x |
double anchor_y | anchor_y |
float off_x_px | off_x_px |
float off_y_px | off_y_px |
float r | r |
float g | g |
float b | b |
Returns
void
Same group (Plan rendering)
plan_add_segment · plan_add_marker · plan_world_per_pixel
Declared in sdk/include/yu3d_plugin.h. Reached through the host table: host->plan_add_text(…). Guard with YU3D_HOST_HAS(host, plan_add_text) if your plugin must also load in an older host.