Table of Contents

Class GLVertexArrayObject<PacketStructure>

Namespace
SearchAThing.OpenGL.Core
Assembly
netcore-opengl-core.dll

Helper to define and enable Vertex Array Object in order to declare how to access vertex buffer object at i-th packet structure components.

public class GLVertexArrayObject<PacketStructure> : IDisposable where PacketStructure : unmanaged

Type Parameters

PacketStructure

Type of packet structure used to store data GLVertexStruct

Inheritance
GLVertexArrayObject<PacketStructure>
Implements
Inherited Members

Constructors

GLVertexArrayObject(GL)

Execute glGenVertexArray() to create vertex array handle and glBindVertexArray on given target.
It will automatically disposed with glDeleteVertexArray().

public GLVertexArrayObject(GL GL)

Parameters

GL GL

Methods

AttribIPointer(uint, int, int, VertexAttribIType, uint?)

Define and enable location to access vertex buffer object at i-th packet structure components (uint types).

public void AttribIPointer(uint location, int offset, int components, VertexAttribIType componentType, uint? stride = null)

Parameters

location uint

Index of attribute location.

offset int

Offset in bytes from the packet structure begin.

components int

Nr. of components (vec3=3; vec4=4).

componentType VertexAttribIType

Component data type.

stride uint?

Sizeof in bytes of packet structure or null to get sizeof packet structure.

AttribPointer(uint, int, int, VertexAttribPointerType, bool, uint?)

Define and enable location to access vertex buffer object at i-th packet structure components .

public void AttribPointer(uint location, int offset, int components, VertexAttribPointerType componentType, bool normalized, uint? stride = null)

Parameters

location uint

Index of attribute location.

offset int

Offset in bytes from the packet structure begin.

components int

Nr. of components (vec3=3; vec4=4).

componentType VertexAttribPointerType

Component data type.

normalized bool

If true normalization will applied.

stride uint?

Sizeof in bytes of packet structure or null to get sizeof packet structure.

Dispose()

public void Dispose()

Dispose(bool)

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

~GLVertexArrayObject()

protected ~GLVertexArrayObject()

ToString()

public override string ToString()

Returns

string