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
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
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
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
rdb
3f520cad01
Fix black screen when going to fullscreen on Mac OS X
2015-04-01 02:40:59 +02:00
rdb
10796fe33e
Fix unlockFocus error in release builds
2015-03-30 17:58:35 +02:00
rdb
b06100afdd
Changes to support building universal Mac rtdist for 1.9
2015-03-28 00:31:10 +01:00
rdb
f624cdcac0
Fix various Mac OS X bugs and build issues
2015-03-25 19:43:21 +01:00
rdb
36525784fd
Robustify GL FBO framebuffer properties handling
2015-03-09 15:27:38 +01:00
rdb
bc24576b02
Split up color-bits into red-bits + green-bits + blue-bits
2014-12-06 16:10:01 +01:00
rdb
a65b477734
Commit patches by cfsworks:
...
cxx: Fix missing includes masked by composite builds.
misc: Fix typos in comments.
config: Fix missing config forward-declarations.
direct: Adjust Python imports to panda3d.* instead of pandac.*.
display: Split graphicsWindow out into an extension.
framework: Use if/elif/elif/endif instead of ifdef/elif/elif/endif.
ode: Remove erroneous INLINE declarations.
interval: Fix missing import.
2014-10-19 22:41:47 +00:00
rdb
6454ddddc5
Eliminate GLP() macro (so we can write glEnable instead of GLP(Enable) again).
2014-06-18 21:06:05 +00:00
rdb
3753dc5790
Add Carbon to required frameworks (for keyboard mapping detection)
2014-05-29 22:26:55 +00:00
rdb
e9ec2cbf78
Implement get_keyboard_map on Mac OS X
2014-03-17 09:41:04 +00:00
rdb
0b99086e8c
Improve key events on Cocoa: add support for the brand new raw key event system, distinguish between left/right modifier keys, fix the lack of down event on help/insert key, fix the lack of up-event while command is pressed
2014-03-08 20:58:03 +00:00
rdb
2274f2e651
FBO overhaul: support layered framebuffers (RTM_bind_layered), support render-to-2d-array, better respect FrameBufferProperties, more simple handling of RTP_depth_stencil
2013-08-13 12:44:27 +00:00
rdb
9866d2d69f
Fix shift modifier (keys were sent as shift-A instead of shift-a) and add some more key input debug info
2013-03-06 22:10:04 +00:00
David Rose
779fceafdd
make_callback_gsg()
2012-11-20 12:11:14 +00:00
rdb
4166327919
Fix some special keys, specifically backspace (it was mismapped to delete)
2012-11-08 13:35:48 +00:00
rdb
4017e1897d
Backport to work on Leopard as well
2012-11-04 13:56:09 +00:00
rdb
6a98f97c9b
support pre-10.6 OSX
2012-11-03 13:39:53 +00:00
rdb
3d68b34f9a
forgot this change earlier
2012-08-08 16:35:31 +00:00
rdb
1f0304c696
new Cocoa graphics pipe is now fully functional
2012-08-03 12:14:04 +00:00
rdb
e79c9aef46
more changes
2012-06-13 17:26:21 +00:00