rdb
cdad2c6e58
Merge branch 'release/1.10.x'
2021-02-08 16:18:24 +01:00
rdb
03b96edfbc
interval: Fix ability to await Sequence objects
2021-02-08 16:16:20 +01:00
rdb
e8b4b6476c
Merge branch 'release/1.10.x'
2021-02-07 15:01:36 +01:00
rdb
28615c6a9e
interval: Support awaiting CInterval from coroutines
...
This is a partial implementation of #909 - it is somewhat inefficient (not suspending the task using a future) and does not implement cancellation. A more complete implementation may follow in 1.11.0.
2021-02-07 12:40:58 +01:00
rdb
be9dde1eee
direct: add .pylintrc, perform major code cleanup pass
...
Closes #989
Co-authored-by: Daniel Stokes <kupomail@gmail.com>
2020-12-31 01:36:23 +01:00
rdb
707ea089cb
Merge remote-tracking branch 'origin/release/1.10.x'
2020-09-01 11:09:29 +02:00
rdb
dae9e31223
direct: fix various uses of types.MethodType in Python 3 (from #1000 )
2020-09-01 10:54:38 +02:00
rdb
d799a09002
cleanup: Remove support for EOL versions of Python
...
Fixes #905
2020-04-26 20:07:56 +02:00
Sam Edwards
9b7bcf2564
Merge branch 'master' into cmake
2019-11-07 21:21:04 -07:00
rdb
a72be90f17
Merge branch 'release/1.10.x'
2019-10-29 23:13:22 +01:00
rdb
f149fb4ab0
direct: big formatting changes for the benefit of API reference
...
Part of the effort to move the API reference to Sphinx, see panda3d/panda3d-docs#21
2019-10-29 20:43:41 +01:00
Sam Edwards
5fa4af9189
CMake: Rely on GNUInstallDirs to specify install paths
...
This makes multiarch OSes happy as they can dictate that
64-bit libraries go into 'lib64'
2019-08-31 00:48:42 -06:00
Sam Edwards
1a654cba04
CMake: Record the location that headers are installed
...
This populates INTERFACE_INCLUDE_DIRECTORIES on the targets
after they're installed.
2019-08-30 22:58:18 -06:00
Sam Edwards
19ed9f6b47
Merge branch 'master' into cmake
2019-08-24 18:07:12 -06:00
Mitchell Stokes
1a03d997b2
Remove support for Miles audio system
...
See #440 for discussion on why this is being removed.
Closes #660
2019-07-10 14:13:36 +02:00
Sam Edwards
6097d34ead
CMake: Neatly format everything for readability and consistency
2019-04-14 22:37:18 -06:00
Sam Edwards
f8161cc529
Merge branch 'master' into cmake
2019-03-12 02:03:16 -06:00
rdb
b75982a610
interval: fix QuatInterval not normalizing the start quaternion
2019-02-14 19:18:14 +01:00
Sam Edwards
99fee1a64d
CMake: Assign COMPONENT and EXPORT to all targets
2018-12-06 17:48:44 -07:00
Sam Edwards
58c065d970
Merge branch 'master' into cmake
2018-10-28 05:11:14 -06:00
rdb
f8b47dc14c
direct: fix slowness in big games with Func(messenger.send)
2018-10-18 22:19:55 +02:00
Sam Edwards
208ecd6708
Merge branch 'master' into cmake
2018-09-02 16:06:41 -06:00
Sam Edwards
fa1e1a2e63
CMake: Tidy up installation directory
...
Don't install "object-Configuration/" directories when
using metalibs, and also put .dll files in bin/ on Windows.
2018-09-01 11:07:55 -06:00
Sam Edwards
4695557a5d
general: Don't require BUILDING_* for static builds
2018-08-31 23:54:32 -06:00
Sam Edwards
2ab77d9a27
Merge branch 'master' into cmake
2018-08-14 21:59:45 -06:00
rdb
ee318a73f3
interval: prevent hypothetical stack overflow
2018-08-08 20:16:11 +02:00
rdb
57578ee58f
direct: add MetaInterval underscore aliases (fixes override bug)
...
These methods are supposed to override the underlying C methods, which do have underscore aliases, so it is important that the Python class defines these underscore aliases as well.
2018-07-17 22:20:35 +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
c4126942f6
Merge branch 'master' into cmake
2018-06-10 02:29:21 -06:00
Sam Edwards
7790f8429d
general: Fully qualify header references into the std namespace
...
Closes #341
2018-06-07 10:35:12 +02:00
Sam Edwards
592a2e2d68
Merge branch 'master' into cmake
2018-06-06 13:18:12 -06:00
Sam Edwards
e2b4353800
general: Replace NULL (and 0 as pointer) with C++11 nullptr
...
Exceptions to this replacement are:
- .c files
- Headers included by a .c file
- stb_image.h
- dr_flac.h
- Strings
- Comments
2018-06-03 16:35:13 -06:00
rdb
e0245d2777
First step towards eliminating `using namespace std;` ( #335 )
2018-06-03 20:32:23 +02:00
Sam Edwards
4cec331722
CMake: Add support for building metalibs as metalibs
2018-04-18 14:42:56 -06:00
Sam Edwards
d642ca4fa0
CMake: Change linkages to go through metalibs
...
This changes the target_link_libraries() declarations so they only
go directly to a component library if it's in the same metalib.
If it's outside of the metalib, the correct thing to do is link against
the metalib. CMake takes care of the transitive linking for us, so
there isn't actually any big change here.
2018-04-15 01:10:21 -06:00
Sam Edwards
449195a33d
CMake: Define appropriate BUILDING_ symbols
2018-03-31 04:24:06 -06:00
Sam Edwards
25b13ad199
Merge branch 'master' into cmake
2018-03-31 04:23:49 -06: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
Sam Edwards
f231ba4cd7
directbase: Introduce BUILDING_ defines for each component
...
Ditto everything before, but for direct.
2018-03-25 13:17:52 -06:00
Michael Wass
89799bc024
direct: Fix some NameErrors
...
Squashed merge of GitHub PR #273
2018-03-05 18:32:27 -07:00
Sam Edwards
eda119dac4
Merge branch 'master' into cmake
...
# Conflicts:
# .travis.yml
2018-02-04 17:12:51 -07:00
rdb
2e20a0f16e
Implement awaitable thread-safe future for async operations
...
This introduces AsyncFuture as a new base class of AsyncTask. It's modelled after asyncio's Future class, except that it is thread-safe and you can use result() to block the current thread waiting for the future to finish (of course this is not necessary for use with coroutines).
AsyncFuture should be used for any operation that finishes in the future, to get the benefit of awaitability within coroutines as well as a standard interface for querying status and results of the operation as well as cancelling it. As such, it's been implemented in various places, including texture.prepare() and win.trigger_copy().
Note that AsyncFuture is intended to be used *once*; it cannot be used more than once. As an example of how this works, tex.prepare() will return the same future as long as the prepare isn't complete, but when it is done, subsequent calls to tex.prepare() will return a new future.
2017-12-04 22:25:28 +01:00
rdb
dd2806c8bd
Mark constructors 'explicit' for which coercion makes no sense
2017-11-06 19:47:38 +01:00
rdb
3f0ab1d198
interval: fix ActorInterval endFrame assignment when passing duration
...
Fixes : #187
2017-11-03 20:07:24 +01:00
rdb
d576c6b638
Improvements to generated API docs, especially in direct tree.
...
Also add an entry point for pfreeze.
2017-05-24 13:30:21 +02:00
rdb
88dd3389ee
cmake: install header files
2017-02-19 23:42:48 +01:00
Sam Edwards
fffd105f96
Merge branch 'master' into cmake
2016-06-25 19:12:14 -07:00
Tohka
facb1cca31
Fix several Sequence crashes ( #99 )
...
tuple and list shouldn't be used as parameter names. With the new Python 2.7.11 these break Sequences altogether.
2016-04-24 11:37:34 +02:00
rdb
881a55f679
Merge branch 'master' into cmake
2016-04-12 21:08:22 +02:00
rdb
23bf9ea5c7
The direct tree is now valid Python 2 *and* 3
2016-03-28 22:33:30 +02:00