From bc6a3a086bd4ae7b9fc910d5d0e2e7e2c2e564a1 Mon Sep 17 00:00:00 2001 From: anthony63 Date: Tue, 27 Sep 2022 18:31:33 -0400 Subject: [PATCH] Added bindAttribLocation --- zgl.zig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zgl.zig b/zgl.zig index 2a9dbf9..bf96c63 100644 --- a/zgl.zig +++ b/zgl.zig @@ -844,6 +844,10 @@ pub fn getAttribLocation(program: types.Program, name: [:0]const u8) ?u32 { return null; return @intCast(u32, loc); } +pub fn bindAttribLocation(program: types.Program, attribute: u32, name: [:0]const u8) void { + c.glBindAttribLocation(@enumToInt(program), attribute, name.ptr); + checkError(); +} /////////////////////////////////////////////////////////////////////////////// // Uniforms