| 112 | } |
| 113 | |
| 114 | bool ParticleDef::isEqualTo(const Ptr& other) |
| 115 | { |
| 116 | // Compare depth hack flag |
| 117 | if (getDepthHack() != other->getDepthHack()) return false; |
| 118 | |
| 119 | // Compare number of stages |
| 120 | if (getNumStages() != other->getNumStages()) return false; |
| 121 | |
| 122 | // Compare each stage |
| 123 | for (std::size_t i = 0; i < getNumStages(); ++i) |
| 124 | { |
| 125 | if (!getStage(i)->isEqualTo(other->getStage(i))) return false; |
| 126 | } |
| 127 | |
| 128 | // All checks passed => equal |
| 129 | return true; |
| 130 | } |
| 131 | |
| 132 | void ParticleDef::onBeginParsing() |
| 133 | { |
nothing calls this directly
no test coverage detected