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

Add GL_TRUE and GL_FALSE #21

Merged

Conversation

@chinmaygarde
Copy link
Contributor

chinmaygarde commented Apr 20, 2013

An extremely minor addition

@metajack
Copy link
Contributor

metajack commented Apr 20, 2013

I think you want to use c_uchar, not c_int.

@jeaye
Copy link
Contributor

jeaye commented Apr 25, 2013

Why not Rust's booleans? The wrapper functions tend to take those instead, so making gl::TRUE be a c_int or even c_uchar is going to make some code more complex than it needs to be.

@metajack
Copy link
Contributor

metajack commented Apr 25, 2013

For the wrapped functions, you will just pass true and false since they take bools. Since the low level stuff is also available for use, gl2::TRUE and gl2::FALSE should match the types of the externs I think.

@metajack
Copy link
Contributor

metajack commented May 16, 2013

@jdm
Copy link
Member

jdm commented Jul 8, 2013

@metajack Looks like this could use updated feedback now.

@metajack

This comment has been minimized.

Copy link

metajack commented on c38a785 Jul 9, 2013

r+

metajack added a commit that referenced this pull request Jul 9, 2013
@metajack metajack merged commit 68f399a into servo:master Jul 9, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants
You can’t perform that action at this time.