/// <summary> /// Create a new RenderQueueGroup /// </summary> /// <param name="renderGroup"></param> private void AddNewRenderGroup(RenderQueueGroup renderGroup) { _queueGroups[renderGroup.Id] = renderGroup; }
/// <summary> /// Get a specific render queue group /// </summary> /// <param name="id">ID of the render queue group</param> /// <returns>Returns an RenderQueueGroup</returns> private RenderQueueGroup GetGroup(int id) { if (id > (int)RenderQueueGroupId.Count) throw new ArgumentException("Invalid RenderQueueGroup id", "id"); if (_queueGroups[id] != null) return _queueGroups[id]; RenderQueueGroup group = new RenderQueueGroup(id); AddNewRenderGroup(group); return group; }