| 171 | } |
| 172 | |
| 173 | void Geometry::ShareIbo(const Geometry* geometry) |
| 174 | { |
| 175 | if (geometry == nullptr) { |
| 176 | sharedIboParams_ = nullptr; |
| 177 | } else if (geometry != this) { |
| 178 | ibo_.reset(nullptr); |
| 179 | sharedIboParams_ = &geometry->iboParams_; |
| 180 | } |
| 181 | } |
| 182 | |
| 183 | void Geometry::Bind() |
| 184 | { |