polyadvent

A game engine from scratch in C
git clone git://jb55.com/polyadvent
Log | Files | Refs | README

poisson.h (489B)


      1 
      2 #ifndef POLYADVENT_POISSON_H
      3 #define POLYADVENT_POISSON_H
      4 
      5 struct point;
      6 
      7 void draw_samples(struct point *samples, double point_dist,
      8                   const int nsamples, const int size);
      9 
     10 struct point *
     11 poisson_disk_samples(const double point_dist, double size,
     12                      const int reject_limit, int *n_samples);
     13 
     14 struct point *
     15 load_samples(int *seed, int *num_samples);
     16 
     17 void
     18 save_samples(struct point *samples, int seed, int n_samples);
     19 
     20 #endif /* POLYADVENT_POISSON_H */