19 #include <grass/gis.h>
20 #include <grass/glocale.h>
21 #include <grass/gstypes.h>
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 gsd_end_legend_viewport(void)
ADD.
void do_label_display(GLuint fontbase, float *lab_pos, const char *txt)
Display label.
void gsd_color_func(unsigned int col)
Set current color.
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 gs_put_label(const char *text, GLuint fontbase, int size, unsigned long color, int *pt)
Put label.
G_warning("category support for [%s] in mapset [%s] %s", name, mapset, type)
void gsd_bgn_legend_viewport(GLint wl, GLint wb, GLint wr, GLint wt)
ADD.
void gsd_remove_curr(void)
Remove current label.
int gsd_get_txtwidth(const char *s, int size)
Get text width.