C# Class CSharpGL.VertexBuffer

type of Vertex Buffer Object, which represents one of vertex's attribute(position, color, uv coordinate, normal, etc).

In CSharpGL, one VertexBuffer contains only one kind of attribute.

Inheritance: Buffer, ICloneable
显示文件 Open project: bitzhuwei/CSharpGL Class Usage Examples

Private Properties

Property Type Description
VertexBuffer System

Public Methods

Method Description
Clone ( ) : object

Shallow copy of this VertexBuffer instance.

Standby ( ShaderProgram shaderProgram ) : void

在使用VertexArrayObject后,此方法只会执行一次。 This method will only be invoked once when using VertexArrayObject.

Private Methods

Method Description
VertexBuffer ( uint bufferId, VBOConfig config, string varNameInVertexShader, int length, int byteLength, uint instancedDivisor, int patchVertexes ) : System

Vertex' attribute buffer's pointer.

Method Details

Clone() public method

Shallow copy of this VertexBuffer instance.
public Clone ( ) : object
return object

Standby() public method

在使用VertexArrayObject后,此方法只会执行一次。 This method will only be invoked once when using VertexArrayObject.
public Standby ( ShaderProgram shaderProgram ) : void
shaderProgram ShaderProgram
return void