diff options
| author | Andre Weissflog <floooh@gmail.com> | 2020-07-13 20:35:26 +0200 |
|---|---|---|
| committer | Andre Weissflog <floooh@gmail.com> | 2020-07-13 20:35:26 +0200 |
| commit | 9ff4c083ae9a063cf258feebaf9817b1dcdc91d3 (patch) | |
| tree | 51eeab6209d0e2dde9e692792ff6994f8043845f /README.md | |
| parent | 904267aea977636c707c95e9c7bbddd839133547 (diff) | |
more README cleanup
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 46 |
1 files changed, 21 insertions, 25 deletions
@@ -472,34 +472,30 @@ Mainly some "missing features" for desktop apps: find this mentioned in any Xcode release notes though). Compiling with ARC disabled should also work on older Xcode versions though. - Various internal code cleanup things: - - The remaining 'top-level' static ObjC id variables in the sokol_gfx.h - Metal backend have been moved into the global static state structure - (that's the reason why __has_feature(objc_arc_fields) is required now - when compiling with ARC) - sokol_app.h had the same 'structural cleanup' as sokol_gfx.h in - January, all internal data has been merged into a single big - state structure, backend specific data has been moved closer to - each other in the header, and backend-specific structures and functions - have been named more consistently for better 'searchability' - - The 'mini GL' loader in the sokol_app.h Win32+WGL backend has - been rewritten to use X-Macros which killed a lot of redundant and - error-prone lines of code + January, all internal state (including ObjC id's) has been merged into + a single big state structure. Backend specific struct declarations + have been moved closer together in the header, and + backend-specific structures and functions have been named more + consistently for better 'searchability' + - The 'mini GL' loader in the sokol_app.h Win32+WGL backend has been + rewritten to use X-Macros (less redundant lines of code) - All macOS and iOS code has been revised and cleaned up - - On macOS a workaround for a (what looks like) post-Catalina NSOpenGLView - issue has been added: if the sokol_app.h window doesn't fit on - screen (and was thus 'clamped' by Cocoa) *AND* the content-size was - not set to native Retina resolution, the initial content size was - reported as if it was in Retina resolution. This caused an empty screen - to be rendered in the imgui-sapp demo. The workaround is to hook into - the NSOpenGLView reshape event at which point the reported content - size is correct. - - On macOS and iOS, the various 'view delegate' objects have been removed, - and rendering happens instead in the subclasses of MTKView, GLKView - and NSOpenGLView. + - On macOS a workaround for a (what looks like) post-Catalina + NSOpenGLView issue has been added: if the sokol_app.h window doesn't + fit on screen (and was thus 'clamped' by Cocoa) *AND* the + content-size was not set to native Retina resolution, the initial + content size was reported as if it was in Retina resolution. This + caused an empty screen to be rendered in the imgui-sapp demo. The + workaround is to hook into the NSOpenGLView reshape event at which + point the reported content size is correct. + - On macOS and iOS, the various 'view delegate' objects have been + removed, and rendering happens instead in the subclasses of MTKView, + GLKView and NSOpenGLView. - On macOS and iOS, there's now proper cleanup code in the - applicationWillTerminate callback (although note that on iOS this function isn't - guaranteed to be called, because an application can also simply be - killed by the operating system. + applicationWillTerminate callback (although note that on iOS this + function isn't guaranteed to be called, because an application can + also simply be killed by the operating system. - **22-Jun-2020**: The X11/GLX backend in sokol_app.h now has (soft-)fullscreen support, bringing the feature on par with Windows and macOS. Many thanks to |