mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-11-25 17:53:47 +00:00
Remove Quad::repeatingTextureToFill
This commit is contained in:
parent
5c419efd79
commit
cec6bc5ebf
2 changed files with 2 additions and 8 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue