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 glDepthFunc, glDepthMask and StencilFunction consts. #7

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

Always

Just for now

Added delete functions

  • Loading branch information
sp0 committed Mar 27, 2013
commit 12fc2b65ca0bdbbb55368eb84adb8b865f1774ff
24 gl2.rs
@@ -355,6 +355,30 @@ pub fn cull_face(mode: GLenum) {
}
}

pub fn delete_buffers(buffers: &[GLuint]) {
unsafe {
ll::glDeleteBuffers(buffers.len() as GLsizei, to_ptr(buffers));
}
}

pub fn delete_frame_buffers(frame_buffers: &[GLuint]) {
unsafe {
ll::glDeleteFramebuffers(frame_buffers.len() as GLsizei, to_ptr(frame_buffers));
}
}

pub fn delete_program(program: GLuint) {
unsafe {
ll::glDeleteProgram(program);
}
}

pub fn delete_render_buffers(render_buffers: &[GLuint]) {
unsafe {
ll::glDeleteRenderbuffers(render_buffers.len() as GLsizei, to_ptr(render_buffers));
}
}

pub fn delete_shader(shader: GLuint) {
unsafe {
ll::glDeleteShader(shader);
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.