MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / LifespanFromInt

Function LifespanFromInt

Source/Graphics/pxdebugdraw.cpp:485–507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

483}
484
485DDLifespan LifespanFromInt(int lifespan_int) {
486 DDLifespan lifespan;
487 switch (lifespan_int) {
488 case _delete_on_draw:
489 lifespan = _delete_on_draw;
490 break;
491 case _delete_on_update:
492 lifespan = _delete_on_update;
493 break;
494 case _persistent:
495 lifespan = _persistent;
496 break;
497 case _fade:
498 lifespan = _fade;
499 break;
500 default:
501 std::ostringstream os;
502 os << "Invalid lifespan int: " << lifespan_int;
503 DisplayError("Error", os.str().c_str());
504 return _delete_on_update;
505 }
506 return lifespan;
507}
508
509RC_VBOContainer DebugDrawWireCylinder::wire_cylinder_vbo;
510

Callers 15

DebugDrawBillboardMethod · 0.85
DrawNametagMethod · 0.85
ASDebugDrawLineFunction · 0.85
ASDebugDrawBillboardFunction · 0.85
ASDebugDrawLine2Function · 0.85
ASDebugDrawLine3Function · 0.85
ASDebugDrawRibbonFunction · 0.85
ASDebugDrawRibbon2Function · 0.85
ASDebugDrawLinesFunction · 0.85
ASDebugDrawTextFunction · 0.85
ASDebugDrawSphereFunction · 0.85
ASDebugDrawWireMeshFunction · 0.85

Calls 3

DisplayErrorFunction · 0.50
c_strMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected