Update text rendering.
This commit is contained in:
parent
8536908eab
commit
8130308f7f
27 changed files with 503 additions and 77 deletions
|
@ -31,6 +31,21 @@ public:
|
|||
return !operator==(rhs);
|
||||
}
|
||||
|
||||
bool hasDefaultLocation() const
|
||||
{
|
||||
return mLocation.getX() == 0.0 && mLocation.getY() == 0.0 && mLocation.getZ() == 0.0;
|
||||
}
|
||||
|
||||
bool hasDefaultScale() const
|
||||
{
|
||||
return mScaleX == 1.0 && mScaleY == 1.0 && mScaleZ == 1.0;
|
||||
}
|
||||
|
||||
bool isDefaultTransform() const
|
||||
{
|
||||
return hasDefaultLocation() && hasDefaultScale();
|
||||
}
|
||||
|
||||
private:
|
||||
Point mLocation;
|
||||
double mScaleX{1};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue