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 bindings for OpenGL 4.3 core profile #4

Merged
merged 1 commit into from
Nov 23, 2024

Conversation

CoffeeImpliesCode
Copy link
Contributor

This PR advances #3.
This may be a bit big as a PR, but I don't know if breaking this up makes sense.
I cross-checked the constants twice, so I'm reasonably sure I didn't mess them up.
Everything is now ordered in the way it's listed in gl.xml

pub const BUFFER = 0x82E0;
pub const SHADER = 0x82E1;
pub const PROGRAM = 0x82E2;
// pub const VERTEX_ARRAY = 0x8074; // already defined?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes this defined in OpenGL 1.1

@hazeycode hazeycode merged commit 745a731 into zig-gamedev:main Nov 23, 2024
3 checks passed
@CoffeeImpliesCode
Copy link
Contributor Author

I just noticed that I translated some const void* to [*c]const u8, while you do *anyopaque, will make a PR fixing that later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants