1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-01-26 02:07:26 +00:00

Remove some old, unused code

This commit is contained in:
fgenesis 2016-03-20 19:14:48 +01:00
parent e661743775
commit 36f33da9a8
2 changed files with 0 additions and 43 deletions

View file

@ -190,44 +190,6 @@ void Quad::resetGrid()
}
}
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);
}
/*
smoothly transition to texture
by creating a copy of the current quad on top and fading it out
*/
void Quad::setTextureSmooth(const std::string &texture, float t)
{
if (this->texture && !this->texture->name.empty())
{
spawnChildClone(t);
//core->getTopStateData()->addRenderObject(q, this->layer);
}
this->setTexture(texture);
}
void Quad::initQuad()
{
repeatToFillScale = Vector(1,1);

View file

@ -52,10 +52,6 @@ public:
void flipVertical();
void flipHorizontal();
void setTextureSmooth(const std::string &texture, float t);
void spawnChildClone(float t);
void burn();
void unburn();
void setWidthHeight(float w, float h=-1);
void setWidth(float w);
void setHeight(float h);
@ -64,7 +60,6 @@ public:
void setSegs(int x, int y, float dgox, float dgoy, float dgmx, float dgmy, float dgtm, bool dgo);
void setDrawGridAlpha(int x, int y, float alpha);
void calculateQuadLighting();
void repeatTextureToFill(bool on);
void refreshRepeatTextureToFill();
bool isRepeatingTextureToFill() const { return repeatingTextureToFill; }