C# Class CSharpGL.VertexArrayObject

Inheritance: IDisposable
Show file Open project: bitzhuwei/CSharpGL Class Usage Examples

Private Properties

Property Type Description
Bind void
Dispose void
Unbind void

Public Methods

Method Description
Dispose ( ) : void

Initialize ( ShaderProgram shaderProgram ) : void

在OpenGL中创建VAO。 创建的过程就是执行一次渲染的过程。

Creates VAO and bind it to specified VBOs.

The whole process of binding is also the process of rendering.

Render ( RenderEventArgs arg, ShaderProgram shaderProgram, IndexBuffer temporaryIndexBuffer = null ) : void

执行一次渲染的过程。

Execute rendering command.

ToString ( ) : string

VertexArrayObject ( IndexBuffer indexBuffer ) : System

VAO是用来管理VBO的。可以进一步减少DrawCall。

VAO is used to reduce draw-call.

Private Methods

Method Description
Bind ( ) : void
Dispose ( bool disposing ) : void
Unbind ( ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Initialize() public method

在OpenGL中创建VAO。 创建的过程就是执行一次渲染的过程。

Creates VAO and bind it to specified VBOs.

The whole process of binding is also the process of rendering.

public Initialize ( ShaderProgram shaderProgram ) : void
shaderProgram ShaderProgram
return void

Render() public method

执行一次渲染的过程。

Execute rendering command.

public Render ( RenderEventArgs arg, ShaderProgram shaderProgram, IndexBuffer temporaryIndexBuffer = null ) : void
arg RenderEventArgs
shaderProgram ShaderProgram
temporaryIndexBuffer IndexBuffer render by a temporary index buffer
return void

ToString() public method

public ToString ( ) : string
return string

VertexArrayObject() public method

VAO是用来管理VBO的。可以进一步减少DrawCall。

VAO is used to reduce draw-call.

public VertexArrayObject ( IndexBuffer indexBuffer ) : System
indexBuffer IndexBuffer index buffer pointer that used to invoke draw command.
return System