Skip to content

Commit

Permalink
Added bindAttribLocation
Browse files Browse the repository at this point in the history
  • Loading branch information
ssudo-Dev authored and ikskuh committed Sep 28, 2022
1 parent 738622e commit bc6a3a0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions zgl.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bc6a3a0

Please sign in to comment.