/// <summary> /// Queue a renderable to be rendered at the end of the frame. /// </summary> /// <param name="renderable">The renderable to render.</param> public void Render(TransformRenderable renderable) { MatrixStack.Push(renderable.ModelMatrix); SetModelMatrix(); renderable.Render(this); MatrixStack.Pop(); }
/// <summary> /// Render a transform renderable. The rendering code is inside the object itself. /// This just makes sure its model matrix is pushed and invalidates the current batch. /// </summary> /// <param name="renderable">The renderable to enter.</param> public void Render(TransformRenderable renderable) { PushModelMatrix(renderable.ModelMatrix); renderable.Render(this); PopModelMatrix(); }