20#include <grass/glocale.h>
21#include <grass/ogsf.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 G_warning(const char *msg,...)
Print a warning message to stderr.
void do_label_display(GLuint fontbase, float *lab_pos, const char *txt)
Display label.
int gsd_get_txtwidth(const char *s, int size)
Get text width.
void gsd_remove_curr(void)
Remove current label.
void gs_put_label(const char *text, GLuint fontbase, int size, unsigned long color, int *pt)
Put label.
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_end_legend_viewport(void)
ADD.
void gsd_bgn_legend_viewport(GLint wl, GLint wb, GLint wr, GLint wt)
ADD.
void gsd_color_func(unsigned int col)
Set current color.