diff options
| author | Comment <tim@gray.(none)> | 2013-06-24 01:39:45 +0100 |
|---|---|---|
| committer | Comment <tim@gray.(none)> | 2013-06-24 01:39:45 +0100 |
| commit | 5f10387ea9eeb5278f4be2c88049041dcc3530b2 (patch) | |
| tree | ea4b11887ad9afe07903a6bccfe58b686051ef4a /06_performance/src/oni.h | |
| parent | dd4799273e806c91606d8246eae61255d44cef9a (diff) | |
new vector parts
Diffstat (limited to '06_performance/src/oni.h')
| -rw-r--r-- | 06_performance/src/oni.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/06_performance/src/oni.h b/06_performance/src/oni.h index 2492d79..898a7a2 100644 --- a/06_performance/src/oni.h +++ b/06_performance/src/oni.h @@ -21,6 +21,17 @@ class fpoint{ else return true; } }; +class fpointManager{ + void add(float x,float y,float z,uint8_t r,uint8_t g,uint8_t b){ + if (pointPool.size()) {//take 1st dead particle + else {}//make a new one + } + void draw(int life,float dx,float dy,float dz){ + if (p.draw(life,dx,dy,dz)) + } + vector<fpoint> points; + set<int> pointPool; +}; class syncOniPlayer{ public: syncOniPlayer() { |
