mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-07-03 06:24:32 +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;
|
autoWidth = autoHeight = 0;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
repeatingTextureToFill = false;
|
|
||||||
|
|
||||||
drawGrid = 0;
|
drawGrid = 0;
|
||||||
|
|
||||||
renderBorder = false;
|
renderBorder = false;
|
||||||
|
@ -416,7 +412,6 @@ void Quad::renderGrid() const
|
||||||
|
|
||||||
void Quad::repeatTextureToFill(bool on)
|
void Quad::repeatTextureToFill(bool on)
|
||||||
{
|
{
|
||||||
repeatingTextureToFill = on;
|
|
||||||
repeatTexture = on;
|
repeatTexture = on;
|
||||||
refreshRepeatTextureToFill();
|
refreshRepeatTextureToFill();
|
||||||
|
|
||||||
|
@ -544,7 +539,7 @@ void Quad::flipVertical()
|
||||||
|
|
||||||
void Quad::refreshRepeatTextureToFill()
|
void Quad::refreshRepeatTextureToFill()
|
||||||
{
|
{
|
||||||
if (repeatingTextureToFill && texture)
|
if (repeatTexture && texture)
|
||||||
{
|
{
|
||||||
upperLeftTextureCoordinates.x = texOff.x;
|
upperLeftTextureCoordinates.x = texOff.x;
|
||||||
upperLeftTextureCoordinates.y = texOff.y;
|
upperLeftTextureCoordinates.y = texOff.y;
|
||||||
|
|
|
@ -62,7 +62,7 @@ public:
|
||||||
void setDrawGridAlpha(size_t x, size_t y, float alpha);
|
void setDrawGridAlpha(size_t x, size_t y, float alpha);
|
||||||
void repeatTextureToFill(bool on);
|
void repeatTextureToFill(bool on);
|
||||||
void refreshRepeatTextureToFill();
|
void refreshRepeatTextureToFill();
|
||||||
bool isRepeatingTextureToFill() const { return repeatingTextureToFill; }
|
bool isRepeatingTextureToFill() const { return repeatTexture; }
|
||||||
void setGridPoints(bool vert, const std::vector<Vector> &points);
|
void setGridPoints(bool vert, const std::vector<Vector> &points);
|
||||||
virtual void createStrip(bool stripVert, int num);
|
virtual void createStrip(bool stripVert, int num);
|
||||||
float getStripSegmentSize() const;
|
float getStripSegmentSize() const;
|
||||||
|
@ -97,7 +97,6 @@ public:
|
||||||
Vector repeatToFillScale;
|
Vector repeatToFillScale;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool repeatingTextureToFill;
|
|
||||||
float gridTimer;
|
float gridTimer;
|
||||||
size_t xDivs, yDivs;
|
size_t xDivs, yDivs;
|
||||||
Vector ** drawGrid;
|
Vector ** drawGrid;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue