コード例 #1
0
 /// <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();
 }
コード例 #2
0
 /// <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();
 }