1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2024-11-25 09:44:02 +00:00

Remove Quad::repeatingTextureToFill

This commit is contained in:
fgenesis 2022-05-20 04:05:54 +02:00
parent 5c419efd79
commit cec6bc5ebf
2 changed files with 2 additions and 8 deletions

View file

@ -181,10 +181,6 @@ void Quad::initQuad()
autoWidth = autoHeight = 0;
repeatingTextureToFill = false;
drawGrid = 0;
renderBorder = false;
@ -416,7 +412,6 @@ void Quad::renderGrid() const
void Quad::repeatTextureToFill(bool on)
{
repeatingTextureToFill = on;
repeatTexture = on;
refreshRepeatTextureToFill();
@ -544,7 +539,7 @@ void Quad::flipVertical()
void Quad::refreshRepeatTextureToFill()
{
if (repeatingTextureToFill && texture)
if (repeatTexture && texture)
{
upperLeftTextureCoordinates.x = texOff.x;
upperLeftTextureCoordinates.y = texOff.y;

View file

@ -62,7 +62,7 @@ public:
void setDrawGridAlpha(size_t x, size_t y, float alpha);
void repeatTextureToFill(bool on);
void refreshRepeatTextureToFill();
bool isRepeatingTextureToFill() const { return repeatingTextureToFill; }
bool isRepeatingTextureToFill() const { return repeatTexture; }
void setGridPoints(bool vert, const std::vector<Vector> &points);
virtual void createStrip(bool stripVert, int num);
float getStripSegmentSize() const;
@ -97,7 +97,6 @@ public:
Vector repeatToFillScale;
protected:
bool repeatingTextureToFill;
float gridTimer;
size_t xDivs, yDivs;
Vector ** drawGrid;