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

Loading of OpenGL extensions for each context. #5

Open
maartenuni opened this issue Jan 18, 2019 · 1 comment
Open

Loading of OpenGL extensions for each context. #5

maartenuni opened this issue Jan 18, 2019 · 1 comment
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@maartenuni
Copy link
Contributor

Currently a we create windows by using SDL2. When the window is created a opengl context is created. When we create the context we can start to load OpenGL extensions. We should do this for every context. Additionally, we should take care that if a context is created it supports all of the required features. If not all of the required features are supported, the creation of the window should be terminated, since it isn't functional window.

@maartenuni maartenuni added bug Something isn't working enhancement New feature or request labels Jan 18, 2019
@maartenuni maartenuni self-assigned this Jan 18, 2019
@maartenuni
Copy link
Contributor Author

Also when a context is made current, we should make sure the function pointers of that context are active and not the pointers of an other context.
Information about how to do this is found at the website of lib libSDL2 https://wiki.libsdl.org/SDL_GL_GetProcAddress

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant