42 unsigned long color,
int *pt)
58 G_warning(
_(
"Max. number of labels reached!"));
62 glNewList(
label_id, GL_COMPILE_AND_EXECUTE);
66 labpt[
X] = (float)(pt[
X] - txt_width / 2.);
67 labpt[
Y] = (float)pt[
Y];
69 glGetIntegerv(GL_VIEWPORT, tmp);
void do_label_display(GLuint, float *, const char *)
Display label.
void gsd_end_legend_viewport(void)
ADD.
void gsd_remove_all(void)
Remove all labels from display list.
void gsd_call_label(void)
Call display list and draw defined labels – called from gsd_prim (gsd_call_lists) ...
void gsd_color_func(unsigned int)
Set current color.
void gsd_bgn_legend_viewport(GLint, GLint, GLint, GLint)
ADD.
void gs_put_label(const char *text, GLuint fontbase, int size, unsigned long color, int *pt)
Put label.
void G_warning(const char *,...) __attribute__((format(printf
void gsd_remove_curr(void)
Remove current label.
int gsd_get_txtwidth(const char *, int)
Get text width.