From 5f10387ea9eeb5278f4be2c88049041dcc3530b2 Mon Sep 17 00:00:00 2001 From: Comment Date: Mon, 24 Jun 2013 01:39:45 +0100 Subject: new vector parts --- 06_performance/src/oni.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to '06_performance/src/oni.h') 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 points; + set pointPool; +}; class syncOniPlayer{ public: syncOniPlayer() { -- cgit v1.2.3