/* ARGSUSED */ static int plot_drawString2D(struct dm *dmp, register char *str, fastf_t x, fastf_t y, int size, int use_aspect) { int sx, sy; sx = x * 2047; sy = y + 2047; pl_move(((struct plot_vars *)dmp->dm_vars.priv_vars)->up_fp, sx, sy); pl_label(((struct plot_vars *)dmp->dm_vars.priv_vars)->up_fp, str); return TCL_OK; }
/** * P L O T _ P U T S * * Output a string into the displaylist. * The starting position of the beam is as specified. */ HIDDEN int plot_drawString2D(struct dm *dmp, const char *str, fastf_t x, fastf_t y, int size, int UNUSED(use_aspect)) { int sx, sy; if (!dmp || !str || size < 0) { return TCL_ERROR; } sx = x * 2047; sy = y + 2047; pl_move(((struct plot_vars *)dmp->dm_vars.priv_vars)->up_fp, sx, sy); pl_label(((struct plot_vars *)dmp->dm_vars.priv_vars)->up_fp, str); return TCL_OK; }