46 for (
int i = 0; i < numparticles; ++i)
49 newparticle->
Parent =
this;
61 glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
70 glTranslated(movePos.
x, movePos.
y, 0);
72 glRotatef(
mAngle,0.0f,0.0f,1.0f);
78 glVertex3d( 0, 0, 0 );
82 glVertex3d( p->
Size, 0, 0 );
90 glVertex3d( 0, p->
Size, 0 );
110 list<Particle*>::iterator n =
mParticles.begin();
121 (*n)->Position.x += (*n)->Velocity.x;
122 (*n)->Position.y += (*n)->Velocity.y;
125 double pleft = (*n)->Position.x - (*n)->Size / 2.0f;
126 double pright = (*n)->Position.x + (*n)->Size / 2.0f;
127 double ptop = (*n)->Position.y - (*n)->Size / 2.0f;
128 double pbottom = (*n)->Position.y + (*n)->Size / 2.0f;
181 vector<Sprite*> retvals = vector<Sprite*>();
194 retvals.push_back(sprite);
197 auto val =
mCollisionData[i]->checkCollisions(sprite->getCollisionData(), sprite->getPosition() + sprite->getAnimation()->animationPeg,
mPos);
201 retvals.push_back(sprite);