19fa82ec8bbda3664be008bd878b9690bd25baf5
[hair] / src / hair.h
1 #ifndef PARTICLES_H_
2 #define PARTICLES_H_
3
4 #include <gmath/gmath.h>
5
6 #include "mesh.h" 
7
8 class Hair {
9 private:
10         std::vector<Vec3> spawn_points;
11         std::vector<Vec3> spawn_directions;
12
13 public:
14         Hair();
15         ~Hair();
16
17         bool init(const Mesh *m, int num_spawns, float thresh = 0.4);
18         void draw() const;
19 };
20
21 #endif //PARTICLES_H_
22