Render() public abstract method

执行此VBO的渲染操作。

Render using this VBO.

public abstract Render ( RenderEventArgs arg ) : void
arg RenderEventArgs
return void
 /// <summary>
 /// 执行一次渲染的过程。
 /// <para>Execute rendering command.</para>
 /// </summary>
 /// <param name="arg"></param>
 /// <param name="shaderProgram"></param>
 /// <param name="temporaryIndexBuffer">render by a temporary index buffer</param>
 public void Render(ShaderProgram shaderProgram, IndexBuffer temporaryIndexBuffer = null)
 {
     if (temporaryIndexBuffer != null)
     {
         this.Bind();
         temporaryIndexBuffer.Render();
         this.Unbind();
     }
     else
     {
         this.Bind();
         this.IndexBuffer.Render();
         this.Unbind();
     }
 }
示例#2
0
 /// <summary>
 /// 执行一次渲染的过程。
 /// <para>Execute rendering command.</para>
 /// </summary>
 /// <param name="arg"></param>
 /// <param name="shaderProgram"></param>
 /// <param name="temporaryIndexBuffer">render by a temporary index buffer</param>
 public void Render(RenderEventArgs arg, ShaderProgram shaderProgram, IndexBuffer temporaryIndexBuffer = null)
 {
     if (temporaryIndexBuffer != null)
     {
         this.Bind();
         temporaryIndexBuffer.Render(arg);
         this.Unbind();
     }
     else
     {
         this.Bind();
         this.IndexBuffer.Render(arg);
         this.Unbind();
     }
 }