public void setCurrentRenderActionList(RenderActionListType type) { switch (type) { case RenderActionListType.kLogicBefore: setCurrentRenderActionList(m_logicBeforeRenderActions); break; case RenderActionListType.kWorld_0: setCurrentRenderActionList(m_worldRenderActions[0]); break; case RenderActionListType.kWorld_1: setCurrentRenderActionList(m_worldRenderActions[1]); break; case RenderActionListType.kWorld_2: setCurrentRenderActionList(m_worldRenderActions[2]); break; case RenderActionListType.kWorld_3: setCurrentRenderActionList(m_worldRenderActions[3]); break; case RenderActionListType.kLogicAfter: setCurrentRenderActionList(m_logicAfterRenderActions); break; } }
public void generateRenderActionToTargetList <T>(RenderActionListType target, params object[] parameters) where T : RAL.RenderAction { var old = m_currentRenderActionList; setCurrentRenderActionList(target); m_currentRenderActionList.Add(m_logicFrameQueue.renderActionGenerator.createRenderAction(typeof(T), parameters)); m_currentRenderActionList = old; }