rdb
4e92b708ff
Merge branch 'macosstuckwindowfix' of github.com:treamology/panda3d into release/1.10.x
...
Closes #536
Fixes #534
2019-03-04 12:23:53 +01:00
tc
96bb90b5e9
cocoa: guarantee 24bit depth when Config.prc has `depth-bits` set to `1`
...
Checks if the value of Config.prc for `depth-bits` is `1` and sets it
manually to 24.
This prevents getting a 16 bit depth buffer on macos
Intended to address #501
Closes #551
2019-02-07 22:26:54 +01:00
Donny Lawrence
2c513ba1c4
Move handle_close_event() call to windowShouldClose, which only triggers when the close button is pressed by the user.
2019-01-13 19:07:43 -05:00
Donny Lawrence
d51db6e39e
Fix an instance where a macOS window will stick around when trying to have it destroyed.
...
This commit also removes an extraneous call to [_window setReleasedWhenClosed], which is already set in cocoaPandaWindow's init method.
2019-01-13 11:54:56 -05:00
Donny Lawrence
f29643dd14
cocoa: Prevent a deadlock when using SIMPLE_THREADS on macOS
...
Closes #491
Fixes #490
2018-12-26 22:47:14 +01:00
Donny Lawrence
0fa0ad673f
cocoa: use CVDisplayLink on macOS to sync video to display(s)
...
Closes #487
Fixes #486
2018-12-24 13:36:13 +01:00
Donny Lawrence
8a0f438156
Get rid of the flickering that occurs on Mojave as a result of changes in the way AppKit handles view layers.
2018-12-03 23:05:05 -05:00
rdb
cc08bacec5
cocoa: fix compilation error
2018-11-30 17:13:35 +01:00
rdb
26fcf131c9
Merge branch 'master' into input-overhaul
2018-11-25 17:10:31 +01:00
rdb
f629a5df1a
cocoa: don't enable sRGB unless it was explicitly requested
...
Fixes #443
2018-11-09 18:25:07 +01:00
rdb
357b6d3093
Merge branch 'master' into input-overhaul
2018-10-29 23:40:46 +01:00
rdb
ed96a52703
cocoa: cautiously enable sRGB framebuffers on macOS
...
[skip ci]
2018-10-28 20:41:14 +01:00
Sam Edwards
2d80d6d063
general: Add missing includes and remove deprecated type
...
Credit for missing includes to @treamology in Git commit
16cfac4829
CGTableCount removed; modern macOS seems to call this
a uint32_t instead. I can find no reference to CGTableCount
in any documentation, and the (very old) source code I dig
up just typedefs it anyway.
2018-10-14 15:50:06 -06:00
rdb
e30b597926
Merge branch 'master' into input-overhaul
2018-09-16 12:28:22 +02:00
Sam Edwards
4695557a5d
general: Don't require BUILDING_* for static builds
2018-08-31 23:54:32 -06:00
rdb
234fd675b1
Merge branch 'master' into input-overhaul
2018-06-23 23:24:09 +02:00
Sam Edwards
b2bfb31114
general: Remove `using std::*` from headers
...
Also remove most `using namespace std;` statements. The only one that remains is in py_panda.h.
Closes #350
Closes #335
2018-06-14 16:04:49 +02:00
Sam Edwards
a971bc1dfc
general: Break apart BUILDING_PANDAGL
2018-06-12 16:15:45 -06:00
rdb
ba2de46beb
Merge branch 'master' into input-overhaul
2018-06-08 15:23:47 +02:00
Sam Edwards
7790f8429d
general: Fully qualify header references into the std namespace
...
Closes #341
2018-06-07 10:35:12 +02:00
rdb
57602d750f
cocoadisplay: don't crash if window/buffer fails to open
2018-06-03 22:35:37 +02:00
rdb
21d8c29645
More warning fixes
2018-06-03 06:45:35 -04:00
rdb
b8af5bf64f
cocoa: fix compile error caused by faulty merge
...
[skip ci]
2018-03-29 14:44:10 +02:00
Donny Lawrence
7830aab21d
cocoa: Fix unresponsive menubar, add default item for application menu.
...
Closes #259
2018-03-29 14:30:16 +02:00
rdb
7062da944a
cocoa: fix ability to type AltGr characters and dead keys
...
It would seem that interpretKeyEvents/insertText would be the right way to do this, but while that does handle AltGr keys correctly, it does not handle dead keys at all. This approach seems to do the right things.
2018-03-29 14:22:59 +02:00
Sam Edwards
9dd37e9dbc
general: Add guards to ensure proper BUILDING_ macros defined
...
This is designed to sanity-check the buildsystem, ensuring that the
expected BUILDING_ macros are defined at the expected time. It
also helps catch cases where the wrong BUILDING_/EXPCL_ macros
are used.
2018-03-25 13:17:52 -06:00
rdb
94385e865f
Merge remote-tracking branch 'origin/master' into input-overhaul
2018-01-28 14:31:45 +01:00
rdb
fe0c182830
cocoa: fix app launching regression on macOS
...
The regression was introduced by ef7f856c46
Fixes #227
2018-01-17 19:46:30 +01:00
rdb
962e6e31e4
Merge branch 'master' into input-overhaul
2018-01-03 14:46:13 +01:00
rdb
ef9803b25e
Changes to support compiling input-overhaul branch on macOS
2017-12-22 14:59:52 +01:00
rdb
ef7f856c46
cocoa: support windowless offscreen rendering on macOS
...
Fixes : #183
2017-12-20 14:27:08 +01:00
rdb
061e0c4862
cocoa: allow getting a GL 3.2+ context on macOS 10.7+ using gl-version
2017-12-19 23:38:45 +01:00
rdb
8b3ad7348e
cocoa: fix broken mouse events in fullscreen on macOS (LP 1500026)
2017-07-10 19:53:53 +02:00
rdb
ab5b5e7e74
Merge branch 'release/1.9.x'
2016-12-25 22:47:22 +01:00
rdb
59c3aa3ef6
cocoa: don't crash if display server doesn't give us display modes
2016-12-25 09:59:29 -05:00
rdb
365e1d53ef
Merge branch 'release/1.9.x'
...
Conflicts:
makepanda/makepandacore.py
panda/src/cocoadisplay/cocoaGraphicsStateGuardian.mm
2016-06-27 01:18:02 +02:00
rdb
7dfd907e17
Try to report red/green/blue bits for Cocoa windows
2016-06-27 00:38:14 +02:00
rdb
4283a63a7d
Merge branch 'release/1.9.x'
2016-06-11 01:29:14 +02:00
rdb
12873c0d7e
Fix wxPython and tkinter issues on Mac OS X
2016-06-10 02:02:36 +02:00
tobspr
0fcfb8e372
New file headers, new comment style
2016-02-17 17:47:48 +01:00
rdb
090e912ce6
Cleanup of comments and whitespace
2016-02-01 22:30:43 +01:00
rdb
3c2f820ad8
Merge branch 'release/1.9.x'
...
Conflicts:
direct/src/p3d/DeploymentTools.py
2015-11-24 13:39:36 +01:00
rdb
573af61636
Merge remote-tracking branch 'eswartz/support-mouse-confinement-cocoa' into release/1.9.x
...
Closes : #20
2015-11-21 17:43:07 +01:00
rdb
de65c02ef2
Implement improvement upon eswartz' fix to properly handle programmatic window size changes on Mac OS X
...
Closes : #39
2015-11-21 17:34:37 +01:00
rdb
db3ab953e4
Remove ppremake, genPyCode, and all hacks created to support them
2015-11-09 19:06:49 +01:00
rdb
2f8060bf2b
Merge remote-tracking branch 'origin/release/1.9.x'
2015-08-07 21:42:02 +02:00
rdb
f1df65034d
Fix Mac 10.11 compile error
2015-08-07 17:29:03 +02:00
rdb
87b23dfeb2
Improve shader model detection mechanism
2015-07-19 21:31:24 +02:00
Ed Swartz
8746fd2252
Explicitly resizing window does not trigger event on OS X; do it ourselves
2015-06-15 10:03:38 -05:00
Ed Swartz
fc5a2e5e33
Implement confined mouse mode for OS X.
...
Note: it seems that using #set_pointer() will result in
a long delay before an absolute mouse position is updated,
even though deltas are reported.
Thus, in CocoaPandaView, the mouse deltas are sent for both
relative and confined modes, so client code (e.g. the "mouse
modes" demo) will be able to recenter the mouse without
choppy movement.
2015-04-30 17:57:00 -05:00