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 glGetProgramInfoLog as get_program_info_log #14

Merged
merged 1 commit into from Apr 12, 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
@@ -623,6 +623,18 @@ pub fn get_error() -> GLenum {
}
}

pub fn get_program_info_log(shader: GLuint) -> ~str {
unsafe {
let result = from_elem(1024u, 0u8);
let result_len: GLsizei = 0 as GLsizei;
ll::glGetProgramInfoLog(shader,
1024 as GLsizei,
to_unsafe_ptr(&result_len),
to_ptr(result) as *GLchar);
return from_bytes(result);
}
}

pub fn get_program_iv(program: GLuint, pname: GLenum) -> GLint {
unsafe {
let result: GLint = 0 as GLint;
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.