Ejemplo n.º 1
0
 /// <summary>
 /// Draw this batch.
 /// </summary>
 /// <param name="ctx">
 /// The <see cref="GraphicsContext"/> used for drawing.
 /// </param>
 /// <param name="programOverride">
 /// A <see cref="ShaderProgram"/> that overrides the default one used for rendering the batch. It can be null.
 /// </param>
 public void Draw(GraphicsContext ctx, ShaderProgram programOverride)
 {
     State.Apply(ctx, programOverride ?? Program);
     VertexArray.Draw(ctx, programOverride ?? Program);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Draw this batch.
 /// </summary>
 /// <param name="ctx">
 /// The <see cref="GraphicsContext"/> used for drawing.
 /// </param>
 public void Draw(GraphicsContext ctx)
 {
     State.Apply(ctx, Program);
     VertexArray.Draw(ctx, Program);
 }