yucad3d

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

DeclarationName
Yu3dPlanCtx*
const char* texttext
double anchor_xanchor_x
double anchor_yanchor_y
float off_x_pxoff_x_px
float off_y_pxoff_y_px
float rr
float gg
float bb

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.