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
PacketStructureType 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
GLGL
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
locationuintIndex of attribute location.
offsetintOffset in bytes from the packet structure begin.
componentsintNr. of components (vec3=3; vec4=4).
componentTypeVertexAttribITypeComponent data type.
strideuint?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
locationuintIndex of attribute location.
offsetintOffset in bytes from the packet structure begin.
componentsintNr. of components (vec3=3; vec4=4).
componentTypeVertexAttribPointerTypeComponent data type.
normalizedboolIf true normalization will applied.
strideuint?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
disposingbool
~GLVertexArrayObject()
protected ~GLVertexArrayObject()
  ToString()
public override string ToString()