/// <summary> /// Render a renderable entity. /// Will either render immediately, or add to the corresponding rendering queue. /// </summary> /// <param name="entity">Entity to render.</param> /// <param name="world">World matrix for the entity.</param> public static void DrawEntity(BaseRenderableEntity entity, Matrix world) { // if no queue, draw immediately and return if (entity.RenderingQueue == RenderingQueue.NoQueue) { entity.DoEntityDraw(ref world); return; } // add to the rendering queue RenderingQueues.AddEntity(entity, world); }