Skip to content

Commit

Permalink
more README cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
floooh committed Jul 13, 2020
1 parent 904267a commit 9ff4c08
Showing 1 changed file with 21 additions and 25 deletions.
46 changes: 21 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9ff4c08

Please sign in to comment.