This repository has been archived by the owner on Apr 28, 2021. It is now read-only.
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.
Start of restructuring.
gl_createcontext
out ofGLWindow.jl/screen.jl
to a constructor forGLFW.Window
.GLFW.Window
related functionality fromGLWindow.jl/screen.jl,types.jl,core.jl
toGLFW/types.jl
.MonitorProperties
fromGLWindow.jl/types.jl
toGLFW/types.jl
MonitorProperties
so it doesn't depend onGeometryTypes: Vec
hit in performance shouldn't matter imo.GLFW.jl
related functionality fromGLWindow/screen.jl,core.jl
toGLFW/extensions.jl
Tests work, also ran the tests for the pullrequest in
GLFW.jl
General Idea: Firstly, splitting pure
GLFW.jl
related functionality fromGLWindow.jl
will allow it to be less backend specific, and act as a interface to differentOpenGL
window/context providers. This is in light of hopefully seperating Windowing functionality in 'GLWindow' fromGLAbstraction.jl
and provide more of anAPI
experience.Secondly, I understand this makes the package no-longer a barebones wrap around the
GLFW
library, but was it really purely that to begin with, and would people not use the added functionality that only depends onGLFW
if it is there?If the authors of
GLFW.jl
want to keep it a barebones library, as is right now, we might be mimicking these changes into a folderbackends
where the backend specific things are implemented, or submodules...