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 various missing functions/constants #4

Merged
merged 5 commits into from Mar 19, 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 glFrontFace, and GL_CW/GL_CCW consts

  • Loading branch information
sp0 committed Mar 19, 2013
commit 9c6ed5fa0070122246f97cfe2dfc10dad71423da
10 gl2.rs
@@ -58,6 +58,10 @@ pub const FIXED: c_uint = 0x140C as c_uint;
/* EnableCap */
pub const TEXTURE_2D: c_uint = 0x0DE1 as c_uint;

/* FrontFaceDirection */
pub const CW: c_uint = 0x0900 as c_uint;
pub const CCW: c_uint = 0x0901 as c_uint;

/* GetPName */
pub const LINE_WIDTH: c_uint = 0x0B21 as c_uint;
pub const ALIASED_POINT_SIZE_RANGE: c_uint = 0x846D as c_uint;
@@ -388,6 +392,12 @@ pub fn framebuffer_texture_2d(target: GLenum,
}
}

pub fn front_face(mode: GLenum) {
unsafe {
ll::glFrontFace(mode);
}
}

pub fn gen_buffers(n: GLsizei) -> ~[GLuint] {
unsafe {
let result = from_elem(n as uint, 0 as GLuint);
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.