Skip to content

Add WebGL and WebGL 2.0 profiles to zopengl #627

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

Merged
merged 1 commit into from
Jul 1, 2024

Conversation

mjakeman
Copy link
Contributor

Hi!

I've been using a few of the zig-gamedev libraries in my own engine project.

Recently I've created a proof of concept port to the web using SDL2 and emscripten. In order to get WebGL rendering working, I've added a new "web" compatibility profile to zopengl which enables and loads the specific subset of GL ES marked compatible by the WebGL standards.

Is this something you would be interested in having upstream?

Once #480 is complete, I'm happy to also contribute a sample using SDL + Emscripten + WebGL 2 in tandem.

@hazeycode
Copy link
Member

Nice!

Once #480 is complete, I'm happy to also contribute a sample using SDL + Emscripten + WebGL 2 in tandem.

That would be very welcome. I will get emscripten support done and merged asap.

@hazeycode
Copy link
Member

hazeycode commented Jun 29, 2024

Look like the merge checks have failed because of formatting. We use Zig's canonical formatting which can be applied by running zig fmt . from the repo's root dir.

@mjakeman
Copy link
Contributor Author

mjakeman commented Jul 1, 2024

Whoops, not sure how I missed that

Checks should pass now

@hazeycode hazeycode merged commit 6f225b4 into zig-gamedev:main Jul 1, 2024
3 checks passed
@hazeycode
Copy link
Member

Thanks!

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