add RSGL renderer, RGFW backend and GLFW backend #140
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
RSGL is a single-header graphics library with a similar simple-to-use style as Raylib.
RSGL itself does not handle rendering, it only batches out
RSGL_TRIANGLE
requests with draw data, making it easy to append low level APIs.It also doesn't care about the windowing backend, so it's pretty much a blank slate for any sort of rendering or windowing API. This PR includes a OpenGL implementation for RSGL as well as examples for both GLFW and RGFW. There is also currently a WIP software rendering backend for RSGL, but it wasn't included in this PR.
The backend hasn't been fully implemented yet, and still has a lot of flaws. But I decided to create this initial PR for the backend to see if it interests anyone.
NOTE: I include Makefiles instead of CMakefiles, those should probably be replaced as the project seems to only use CMake. Sadly, I'm not very familiar with CMake.