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

Added glDisableVertexAttribArray and glValidateProgram #3

Merged
merged 2 commits into from Mar 19, 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

12 gl2.rs
@@ -342,6 +342,12 @@ pub fn enable_vertex_attrib_array(index: GLuint) {
}
}

pub fn disable_vertex_attrib_array(index: GLuint) {
unsafe {
ll::glDisableVertexAttribArray(index);
}
}

pub fn finish() {
unsafe {
return ll::glFinish();
@@ -514,6 +520,12 @@ pub fn use_program(program: GLuint) {
}
}

pub fn validate_program(program: GLuint) {
unsafe {
ll::glValidateProgram(program);
}
}

pub fn vertex_attrib_pointer_f32(index: GLuint,
size: GLint,
normalized: bool,
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.