19 #include <grass/ogsf.h>
34 if (
BM_get(buff->nm, (offset % buff->nm->cols),
35 (offset / buff->nm->cols))) {
40 *att = (buff->ib ? (float)buff->ib[offset]
41 : buff->sb ? (
float)buff->sb[offset]
42 : buff->cb ? (float)buff->cb[offset]
43 : buff->fb ? (
float)buff->fb[offset]
47 *att = (buff->tfunc)(*att, offset);
int BM_get(struct BM *map, int x, int y)
Gets 'val' from the bitmap.
int get_mapatt(typbuff *buff, int offset, float *att)
Get map attributes.