19 #include <grass/gstypes.h>
35 (buff->nm, (offset % buff->nm->cols),
36 (offset / buff->nm->cols))) {
41 *att = (buff->ib ? (float)buff->ib[offset] :
42 buff->sb ? (
float)buff->sb[offset] :
43 buff->cb ? (float)buff->cb[offset] :
44 buff->fb ? (
float)buff->fb[offset] : buff->k);
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.