-
Notifications
You must be signed in to change notification settings - Fork 24
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
Replace exported C types with unsafe.Pointer #101
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor style comments for now.
I think it's more important to review this at the functional level and confirm this is the right direction. I'll need more time to think about that.
Edit: Never mind, I've already done that in go-gl/gl#113. (We could really use NeedsDecision
, NeedsFix
labels so it's easier to track when decisions are made.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
ping @slimsag |
Use GoCType instead of CType for documents
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
This change applies the glow change go-gl/glow#101. Done with: go generate -tags=gen github.com/go-gl/gl Fixes #113.
This PR replaces exported C types with
unsafe.Pointer
so thatgl
will not expose C types. This PR also adds comments describing the original C types.Fixes go-gl/gl#113
Output Example: