Finalization of axial shading

This commit is contained in:
Jakub Melka
2019-08-31 14:37:18 +02:00
parent 7e2d1b266f
commit 36a071886b
10 changed files with 467 additions and 13 deletions

View File

@ -158,6 +158,25 @@ public:
/// Erases the last element from the array
inline void pop_back() { resize(size() - 1); }
bool operator==(const PDFFlatArray& other) const
{
const size_t size = this->size();
if (size != other.size())
{
return false;
}
for (size_t i = 0; i < size; ++i)
{
if ((*this)[i] != other[i])
{
return false;
}
}
return true;
}
private:
size_t getFlatBlockSize() const { return m_flatBlockItemCount; }