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

Missing GLtypes support - SDL_GL #107

Closed
kassane opened this issue Jan 8, 2023 · 2 comments
Closed

Missing GLtypes support - SDL_GL #107

kassane opened this issue Jan 8, 2023 · 2 comments

Comments

@kassane
Copy link

kassane commented Jan 8, 2023

I am trying to develop another player example for the libvlc-zig - issue#3 project using SDL2 but the referenced example uses OGL together.
However, the binding doesn't have access to the GL types (GLint, GLfloat, GLchar,...) and some functions are not available for use.
How would I get access to these SDL_GL features?

@ikskuh
Copy link
Owner

ikskuh commented Jan 8, 2023

For a fully featured OpenGL interface, you need a loader library like zig-opengl, that will provide you with a well-defined OpenGL interface

@kassane
Copy link
Author

kassane commented Jan 8, 2023

Very interesting, will have a look at that.
I also checked the gen_sdl.sh script since the binding folder did not have the SDL_opengl.zig file.

@kassane kassane closed this as completed Jan 8, 2023
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

No branches or pull requests

2 participants