MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / pushBack

Method pushBack

Engine/source/T3D/pathCamera.cpp:350–369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

348}
349
350void PathCamera::pushBack(CameraSpline::Knot *knot)
351{
352 // Make room at the end
353 if (mNodeCount == NodeWindow) {
354 delete mSpline.remove(mSpline.getKnot(0));
355 mNodeBase++;
356 }
357 else
358 mNodeCount++;
359
360 // Fill in the new node
361 mSpline.push_back(knot);
362 setMaskBits(WindowMask);
363
364 // Make sure the position doesn't fall off
365 if (mPosition < mNodeBase) {
366 mPosition = (F32)mNodeBase;
367 setMaskBits(PositionMask);
368 }
369}
370
371void PathCamera::pushFront(CameraSpline::Knot *knot)
372{

Callers 3

pathCamera.cppFile · 0.45
emitRingsMethod · 0.45
createSplitMethod · 0.45

Calls 3

getKnotMethod · 0.80
removeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected