void AutoMap::paint(const Vector &pos) { Quad *q = new Quad("particles/WhiteGlow", pos); q->setLife(1); q->setDecayRate(0.5); q->color = paintColor; q->followCamera = 1; q->setWidthHeight(8,8); dsq->game->addRenderObject(q, this->layer); }
void Quad::spawnChildClone(float t) { if (!this->texture) return; Quad *q = new Quad; q->setTexture(this->texture->name); q->setLife(t+0.1f); q->setDecayRate(1); q->width = this->width; q->height = this->height; q->alpha = 1; q->alpha.interpolateTo(0, t); if (isfh()) q->flipHorizontal(); q->position = this->position; q->followCamera = this->followCamera; q->scale = this->scale; q->offset = this->offset; q->blendType = this->blendType; //q->parentManagedPointer = true; //q->renderBeforeParent = false; core->getTopStateData()->addRenderObject(q, this->layer); //addChild(q); }