C# Class Sharpex2D.Rendering.OpenGL.VertexBuffer

Inheritance: IDisposable
Afficher le fichier Open project: ThuCommix/Sharpex2D Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Disposes the object.

Method Details

Bind() public méthode

Binds the VertexBuffer.
public Bind ( ) : void
Résultat void

Dispose() public méthode

Disposes the object.
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

Disposes the object.
protected Dispose ( bool disposing ) : void
disposing bool The disposing state.
Résultat void

EnableVertexAttribArray() public static méthode

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

SetData() public méthode

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

Unbind() public méthode

Unbinds the VertexBuffer.
public Unbind ( ) : void
Résultat void

VertexAttribPointer() public static méthode

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.
Résultat void

VertexBuffer() public méthode

Initializes a new VertexBuffer class.
public VertexBuffer ( ) : System
Résultat System