19 #include <grass/gis.h> 
   20 #include <grass/G3d.h> 
   21 #include <grass/gstypes.h> 
   22 #include <grass/glocale.h> 
   36     struct Colors *colors;
 
   39         G_warning(_(
"3D raster map <%s> not found"), name);
 
   43     if (
NULL == (colors = (
struct Colors *)G_malloc(
sizeof(
struct Colors))))
 
   46     if (0 > G3d_readColors(name, mapset, colors)) {
 
   87     return ((r & 0xff) | ((g & 0xff) << 8) | ((b & 0xff) << 16));
 
void G_free(void *buf)
Free allocated memory. 
int G_free_colors(struct Colors *colors)
free color structure memory 
int Gvl_unload_colors_data(void *color_data)
Unload color table. 
int Gvl_get_color_for_value(void *color_data, float *value)
Get color for value. 
int Gvl_load_colors_data(void **color_data, const char *name)
Load color table. 
int G_get_f_raster_color(const FCELL *rast, int *red, int *grn, int *blu, struct Colors *colors)
Gets color for a FCELL raster. 
G_warning("category support for [%s] in mapset [%s] %s", name, mapset, type)
char * G_find_grid3(const char *name, const char *mapset)