|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-55de52a352
|
OGSF library - label management (lower level functions) More...

Go to the source code of this file.
Macros | |
| #define | MAX_LIST 20 |
Functions | |
| void | gs_put_label (const char *text, GLuint fontbase, int size, unsigned long color, int *pt) |
| Put label. | |
| void | gsd_remove_curr (void) |
| Remove current 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) | |
Variables | |
| GLuint | label_base |
| GLuint | label_id |
OGSF library - label management (lower level functions)
GRASS OpenGL gsurf OGSF Library
SPDX-FileCopyrightText: 1999-2008 GRASS Development Team SPDX-License-Identifier: GPL-2.0-or-later
Definition in file gsd_label.c.
| #define MAX_LIST 20 |
Definition at line 21 of file gsd_label.c.
Put label.
| fontbase | fontbase settings |
| size | font size |
| color | font color |
| pt |
Definition at line 37 of file gsd_label.c.
References _, b, do_label_display(), G_warning(), gsd_bgn_legend_viewport(), gsd_color_func(), gsd_end_legend_viewport(), gsd_get_txtwidth(), l, label_base, label_id, MAX_LIST, r, t, X, and Y.
Call display list and draw defined labels – called from gsd_prim (gsd_call_lists)
Definition at line 115 of file gsd_label.c.
References label_base, and MAX_LIST.
Referenced by gsd_calllists().
Remove all labels from display list.
Definition at line 103 of file gsd_label.c.
References label_base, label_id, and MAX_LIST.
| GLuint label_base |
Definition at line 24 of file gsd_label.c.
Referenced by gs_put_label(), gsd_call_label(), and gsd_remove_all().
| GLuint label_id |
Definition at line 25 of file gsd_label.c.
Referenced by gs_put_label(), gsd_remove_all(), and gsd_remove_curr().