Action::ResultE ShadingCallbacks::pointlightRenderLeave(CNodePtr &pNode, Action *action) { PointLight *pPl = dynamic_cast<PointLight *>(pNode.getCPtr()); if(pPl->getOn() == false) return Action::Continue; return lightRenderLeave(pPl, action); }
Action::ResultE ShadingCallbacks::pointlightRenderEnter(CNodePtr &pNode, Action *action) { PointLight *pPl = dynamic_cast<PointLight *>(pNode.getCPtr()); if(pPl->getOn() == false) return Action::Continue; DrawActionBase *da = dynamic_cast<DrawActionBase *>(action); da->getStatistics()->getElem(PointLight::statNPointLights)->inc(); return lightRenderEnter(pPl, action); }