Table of Contents

Class GLVertexBufferObject<T>

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

Manage mapping of given template typed data to gpu memory.

public class GLVertexBufferObject<T> : IDisposable where T : unmanaged

Type Parameters

T

Type of packet structure.

Inheritance
GLVertexBufferObject<T>
Implements
Inherited Members

Constructors

GLVertexBufferObject(GL, BufferTargetARB, Span<T>, BufferUsageARB)

Executes gLGenBuffer() to create buffer handle and gLBindBuffer() on given target, then gLBufferData() to map on given data.
It will be automatically disposed with the call of glDeleteBuffer().

public GLVertexBufferObject(GL GL, BufferTargetARB target, Span<T> data, BufferUsageARB usage = BufferUsageARB.DynamicDraw)

Parameters

GL GL
target BufferTargetARB
data Span<T>
usage BufferUsageARB

Methods

Dispose()

public void Dispose()

Dispose(bool)

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

~GLVertexBufferObject()

protected ~GLVertexBufferObject()

ReplaceItems(int, Span<T>)

public void ReplaceItems(int offset, Span<T> newdata)

Parameters

offset int
newdata Span<T>

ToString()

public override string ToString()

Returns

string