mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-10-07 10:26:34 +00:00
opengl: buffers
This commit is contained in:
@@ -11,6 +11,11 @@ pub inline fn create() !VertexArray {
|
||||
return VertexArray{ .id = vao };
|
||||
}
|
||||
|
||||
// Unbind any active vertex array.
|
||||
pub inline fn unbind() !void {
|
||||
c.glBindVertexArray(0);
|
||||
}
|
||||
|
||||
/// glBindVertexArray
|
||||
pub inline fn bind(v: VertexArray) !void {
|
||||
c.glBindVertexArray(v.id);
|
||||
|
Reference in New Issue
Block a user