mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 12:38:24 +01:00
15 lines
315 B
C#
15 lines
315 B
C#
using System.Runtime.CompilerServices;
|
|
|
|
namespace Brutal.OpenGlApi;
|
|
|
|
using static OpenGl;
|
|
|
|
public readonly record struct GlVertexArray(uint Id)
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public unsafe GlVertexArray Bind()
|
|
{
|
|
Native.glBindVertexArray(this);
|
|
return this;
|
|
}
|
|
}
|