C# Class Sharpex2D.Rendering.OpenGL.VertexBuffer

Inheritance: IDisposable
Mostra file Open project: ThuCommix/Sharpex2D Class Usage Examples

Public Methods

Method Description
Bind ( ) : void

Binds the VertexBuffer.

Dispose ( ) : void

Disposes the object.

EnableVertexAttribArray ( uint index ) : void

Enables the vertex attribute array.

SetData ( float vertices ) : void

Sets the Data.

Bind must be called in order to take effect.

Unbind ( ) : void

Unbinds the VertexBuffer.

VertexAttribPointer ( uint index, int size, bool normalized, int stride, int offset ) : void

Pushs the vertex attributes description.

VertexBuffer ( ) : System

Initializes a new VertexBuffer class.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Disposes the object.

Method Details

Bind() public method

Binds the VertexBuffer.
public Bind ( ) : void
return void

Dispose() public method

Disposes the object.
public Dispose ( ) : void
return void

Dispose() protected method

Disposes the object.
protected Dispose ( bool disposing ) : void
disposing bool The disposing state.
return void

EnableVertexAttribArray() public static method

Enables the vertex attribute array.
public static EnableVertexAttribArray ( uint index ) : void
index uint The Index.
return void

SetData() public method

Sets the Data.
Bind must be called in order to take effect.
public SetData ( float vertices ) : void
vertices float The Vertices.
return void

Unbind() public method

Unbinds the VertexBuffer.
public Unbind ( ) : void
return void

VertexAttribPointer() public static method

Pushs the vertex attributes description.
public static VertexAttribPointer ( uint index, int size, bool normalized, int stride, int offset ) : void
index uint The Index.
size int The Size.
normalized bool The normalized State.
stride int The Stride.
offset int The Offset.
return void

VertexBuffer() public method

Initializes a new VertexBuffer class.
public VertexBuffer ( ) : System
return System