public abstract Render ( |
||
arg | ||
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(); } }
/// <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(); } }