| 295 | } |
| 296 | |
| 297 | void PathShape::pushBack(CameraSpline::Knot *knot) |
| 298 | { |
| 299 | // Make room at the end |
| 300 | if (mNodeCount == NodeWindow) { |
| 301 | delete mSpline.remove(mSpline.getKnot(0)); |
| 302 | mNodeBase++; |
| 303 | } |
| 304 | else |
| 305 | mNodeCount++; |
| 306 | |
| 307 | // Fill in the new node |
| 308 | mSpline.push_back(knot); |
| 309 | setMaskBits(WindowMask); |
| 310 | |
| 311 | // Make sure the position doesn't fall off |
| 312 | if (mPosition < mNodeBase) { |
| 313 | mPosition = mNodeBase; |
| 314 | setMaskBits(PositionMask); |
| 315 | } |
| 316 | } |
| 317 | |
| 318 | void PathShape::pushFront(CameraSpline::Knot *knot) |
| 319 | { |
no test coverage detected