void GeoScene::Render() { ofBackground(0, 255); ofSetColor(255); ofPushMatrix(); geoBack.draw(0,0,0); ofPopMatrix(); GeoHands* gh; for (vector<Particle*>::iterator h = pHandPositions->begin(); h != pHandPositions->end(); ++h) { gh= (GeoHands*)(*h); gh->drawHands(); } GeoParticle* gp; for (vector<Particle*>::iterator p = pPeople->begin(); p != pPeople->end(); ++p) { gp = (GeoParticle*)(*p); ofVec4f position = (*p)->pos; ofPushMatrix(); ofTranslate((*p)->pos); ofSetColor(col); gp->draw(); ofPopMatrix(); } }
void GeoScene::Render() { ofBackground(0, 255); ofSetColor(255); ofPushMatrix(); geoBack.draw(0,0,0); ofPopMatrix(); GeoHands* gh; for (vector<Particle*>::iterator h = pHandPositions->begin(); h != pHandPositions->end(); ++h) { gh = (GeoHands*)(*h); ofPushMatrix(); //ofSetColor(0,200,200,70); //ofScale(radius,radius); gh->drawHands(geoHands); ofPopMatrix(); } GeoParticle* gp; m_gradients.bind(); for (vector<Particle*>::iterator p = pPeople->begin(); p != pPeople->end(); ++p) { gp = (GeoParticle*)(*p); ofVec4f position = (*p)->pos; //ofPushMatrix(); //ofTranslate((*p)->pos); //ofSetColor(col); gp->draw(m_gradients, explosionSprite); //ofPopMatrix(); } m_gradients.unbind(); }