Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose glBindAttribLocation. #19

Merged
merged 1 commit into from Apr 18, 2013
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Expose glBindAttribLocation.

  • Loading branch information
metajack committed Apr 18, 2013
commit 2a3157917918779d74c1c6dd9f05cf5110e477e2
8 gl2.rs
@@ -362,6 +362,14 @@ pub fn attach_shader(program: GLuint, shader: GLuint) {
}
}

pub fn bind_attrib_location(program: GLuint, index: GLuint, name: ~str) {
unsafe {
do str::as_c_str(name) |cstr| {
ll::glBindAttribLocation(program, index, cstr);
}
}
}

pub fn bind_buffer(target: GLenum, buffer: GLuint) {
unsafe {
ll::glBindBuffer(target, buffer);
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.