summaryrefslogtreecommitdiff
path: root/src/modules/flow/ff.h
blob: 4d30143c5c6779ac4ea092372e1be35c583a1df5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef _FF_H
#define _FF_H

#include "v3f.h"

typedef struct ff_t ff_t;

ff_t * ff_new(unsigned size, void (*populator)(void *context, unsigned size, const v3f_t *other, v3f_t *field), void *context);
void ff_free(ff_t *ff);
v3f_t ff_get(ff_t *ff, v3f_t *coordinate, float w);
void ff_populate(ff_t *ff, unsigned idx);

#endif
© All Rights Reserved