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 support for externally provided GL3 #110

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eboutin
Copy link
Contributor

@eboutin eboutin commented Jan 6, 2023

librw supports OpenGL3 but only when the windows & OpenGL context creation is handled by GLFW or SDL2.

This commit adds a new "extgl3" GfxLib for the OpenGL3 driver, on top of GLFW and SDL2.

This allows to embed librw in graphics frameworks such as wxWidgets or Qt which provide OpenGL window & context creation without using GLFW nor SDL2.

An example of this usage is provided here: https://github.com/kaalkuul/librw-wxWidgets-starter
This starter kit demonstrates how to embed librw within a wxWidgets application (using the original fork for this PR).

This commit should also allow work in Qt GL windows but this has not been tested yet.

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.

1 participant