Skip to content

Commit bc6a3a0

Browse files
ssudo-Devikskuh
authored andcommitted
Added bindAttribLocation
1 parent 738622e commit bc6a3a0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

zgl.zig

+4
Original file line numberDiff line numberDiff line change
@@ -844,6 +844,10 @@ pub fn getAttribLocation(program: types.Program, name: [:0]const u8) ?u32 {
844844
return null;
845845
return @intCast(u32, loc);
846846
}
847+
pub fn bindAttribLocation(program: types.Program, attribute: u32, name: [:0]const u8) void {
848+
c.glBindAttribLocation(@enumToInt(program), attribute, name.ptr);
849+
checkError();
850+
}
847851

848852
///////////////////////////////////////////////////////////////////////////////
849853
// Uniforms

0 commit comments

Comments
 (0)