MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / attachToRenderSystem

Method attachToRenderSystem

radiantcore/entity/EntityNode.cpp:617–628  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

615}
616
617void EntityNode::attachToRenderSystem()
618{
619 if (_isAttachedToRenderSystem) return;
620
621 auto renderSystem = getRenderSystem();
622
623 if (renderSystem)
624 {
625 renderSystem->addEntity(std::dynamic_pointer_cast<IRenderEntity>(shared_from_this()));
626 _isAttachedToRenderSystem = true;
627 }
628}
629
630void EntityNode::detachFromRenderSystem()
631{

Callers

nothing calls this directly

Calls 1

addEntityMethod · 0.45

Tested by

no test coverage detected