mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-27 05:28:25 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
15
Brutal.OpenGl/Types/GlVertexArray.cs
Normal file
15
Brutal.OpenGl/Types/GlVertexArray.cs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
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;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue