summaryrefslogtreecommitdiff
path: root/06_performance/src/oni.h
diff options
context:
space:
mode:
authorComment <tim@gray.(none)>2013-06-24 01:39:45 +0100
committerComment <tim@gray.(none)>2013-06-24 01:39:45 +0100
commit5f10387ea9eeb5278f4be2c88049041dcc3530b2 (patch)
treeea4b11887ad9afe07903a6bccfe58b686051ef4a /06_performance/src/oni.h
parentdd4799273e806c91606d8246eae61255d44cef9a (diff)
new vector parts
Diffstat (limited to '06_performance/src/oni.h')
-rw-r--r--06_performance/src/oni.h11
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() {