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 vertex_attrib_pointer_u8 #9

Merged
merged 1 commit into from Apr 1, 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

Added u8 vertex attrib

  • Loading branch information
Jeaye
Jeaye committed Mar 31, 2013
commit e3a20b1bff5e229af4a66902fb9a0fb3fc0a9a08
15 gl2.rs
@@ -619,6 +619,21 @@ pub fn vertex_attrib_pointer_f32(index: GLuint,
}
}

pub fn vertex_attrib_pointer_u8(index: GLuint,
size: GLint,
normalized: bool,
stride: GLsizei,
offset: GLuint) {
unsafe {
ll::glVertexAttribPointer(index,
size,
UNSIGNED_BYTE,
normalized as GLboolean,
stride,
reinterpret_cast(&(offset as uint)));
}
}

pub fn viewport(x: GLint, y: GLint, width: GLsizei, height: GLsizei) {
unsafe {
ll::glViewport(x, y, width, height);
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.