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

[WIP] multiwindow support #526

Draft
wants to merge 50 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
f3f1661
sokol_app.h: start with multiwindow
floooh Apr 16, 2021
660b405
sokol_app.h: window pool code, and some better platform-specific code…
floooh Apr 17, 2021
6057fc6
some intermediate code cleanup
floooh Apr 18, 2021
292ab0f
continue with macOS window code
floooh Apr 18, 2021
0c74bce
continue with macOS window code
floooh Apr 19, 2021
58c8c4b
sokol_app.h macOS: multiwindow wip
floooh Apr 20, 2021
8f86a72
sokol_app.h macOS: more multiwindow wip
floooh Apr 20, 2021
5a34f90
merge latest changes from master
floooh Apr 21, 2021
1c5a562
sokol_gfx.h: move Metal semaphore into _sg_context_t
floooh Apr 21, 2021
6bc2e2d
destroy main window last
floooh Apr 21, 2021
236be4b
sokol_gfx.h metal: move uniform buffers into _sg_context_t
floooh Apr 22, 2021
dd7b468
sokol_app.h metal: autoreleasepool in view's drawRect method
floooh Apr 23, 2021
205e031
sokol_gfx.h: keep track of rendered context frames
floooh Apr 24, 2021
e59af70
sokol_gfx.h: each context has its own MTLCommandQueue
floooh Apr 24, 2021
f361165
sokol_app.h: experiement with GLFW-style render loop
floooh Apr 24, 2021
7ea7a4f
sokol_app.h: go back to application callbacks instead of window callb…
floooh Apr 25, 2021
baf1327
sokol_app.h: trigger rendering with CVDisplayLink
floooh Apr 26, 2021
e089f51
sokol_app.h metal: add window rps and drawable callbacks
floooh Apr 27, 2021
abf6d31
sokol_gfx.h: sg_commit loops through all active contexts
floooh Apr 27, 2021
852fbb9
sokol_glue.h: helper function to fill per-window sg_context_desc
floooh Apr 27, 2021
e66df10
sokol_app.h: single-window vs multi-window APIs
floooh Apr 28, 2021
16cf91a
sokol_app.h: start ditching MTKView, use CAMetalLayer directly
floooh May 2, 2021
99d7d88
Revert "sokol_app.h: start ditching MTKView, use CAMetalLayer directly"
floooh May 3, 2021
ccfdb17
more multiwindow wip
floooh May 3, 2021
23239cf
multiwindow intermediate code cleanup
floooh May 4, 2021
a35bea5
sokol_gfx.h mtl: ignore context commit if context wasn't rendered to
floooh May 4, 2021
f79edaf
sokol_app.h metal: start to fix window close and shutdown behaviour
floooh May 4, 2021
88d9295
sokol_app.h metal: fix window/framebuffer resizing
floooh May 5, 2021
9ece3f1
sokol_app.h: window closed event
floooh May 5, 2021
2f6c1a5
add a temp fixme comment
floooh May 11, 2021
1183c90
sokol_app.h: per-window user data
floooh May 13, 2021
4260fb4
sokol_app.h: programmatic window close
floooh May 13, 2021
9738382
more multiwindow wip
floooh May 16, 2021
64afd39
sokol_app.h: start with window pos/size API
floooh May 17, 2021
c858e23
sokol_app.h macos: set/get window pos and size
floooh May 23, 2021
7862200
sokol_app.h: no_decoration flag and sapp_window_slow_index() function
floooh May 24, 2021
bd1a6a7
sokol_app.h: show/hide window wip
floooh May 25, 2021
770583b
sokol_app.h macos: add remaining multi-window functions
floooh May 27, 2021
3eba4fb
sokol_app.h macos: applicationShouldHandleReopen
floooh May 27, 2021
df8a7fd
sokol_app.h macos gl: multiwindow wip
floooh May 29, 2021
bb6dd74
sokol_app.h macos gl: more multiwindow wip
floooh May 29, 2021
7f70b2d
sokol_app.h macos gl: make multiwindow basically work (minus a memory…
floooh May 30, 2021
15c9596
sokol_gfx.h: activate default context if active context is destroyed
floooh May 30, 2021
bc64d6f
sokol_app.h macos gl: fix NSOpenGLContext memory leak
floooh May 31, 2021
b7cfef5
sokol_app.h: intermediate code cleanup
floooh Jun 1, 2021
ccdb7e9
sokol_gfx.h: de-associate resources and contexts
floooh Jun 1, 2021
847076f
sokol_gfx_imgui.h: remove per resource context id, and context mismat…
floooh Jun 1, 2021
5a1ff5b
sokol_app.h GL: fix initial wrongly reported framebuffer size for non…
floooh Jun 3, 2021
3c2fa0b
sokol_app.h metal: fix MTKView internal texture resize
floooh Jun 3, 2021
57688eb
sokol_app.h macos: fix inverted y mouse pos computation
floooh Jun 3, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading