7192 Commits

Author SHA1 Message Date
Sam Edwards
a89059ec98 CMake: Copy in the "direct" tree to the build directory 2018-02-07 18:59:44 -07:00
Sam Edwards
eda119dac4 Merge branch 'master' into cmake
# Conflicts:
#	.travis.yml
2018-02-04 17:12:51 -07:00
fireclawthefox
f2cf391a2e gui: add simple way to enable overflow in DirectEntry
Closes #236
2018-01-24 19:17:50 +01:00
rdb
bdb53b8cb5 showbase: fixes for aspect-ratio adjustment of pixel2d(p) 2018-01-05 19:49:14 +01:00
rdb
27fb1a4a9e showbase: fix aspect ratio calculation
backs out part of 7a46b2ca60aacc1b8f1c87a7a101546bd6214120, from PR #204
2018-01-05 15:00:21 +01:00
rdb
c1679472cd actor: change parent of exposed joint to character
This prevents exposed joints from not being affected by a transform directly on the Character node.  See panda3d/panda3d#221 for more details.

Fixes #221
2018-01-05 14:39:39 +01:00
rdb
47c7ff42cc CommonFilters: better handle failure condition when shaders not supported 2018-01-05 14:15:22 +01:00
rdb
4f50f6abd0 showbase: use ShowBaseGlobal module as alternative to builtin scope
Allows accessing `base` object and several other builtins from the ShowBaseGlobal module.

It doesn't bother with builtins that are available as members of the base object such as `render` and `loader`.

Fixes #182
2018-01-03 14:25:27 +01:00
rdb
588d41ed7e Fix assorted compiler warnings 2017-12-24 15:12:58 +01:00
rdb
ed5e5386b9 AsyncFuture improvements, incl. support for gathering futures 2017-12-21 14:07:01 +01:00
deflected
e4a817b469 Loader: Fixed crash when canceling async loading of model
- Clean up the _loader after we clean up the requests,
        not before that

Signed-off-by: deflected <deflected@users.noreply.github.com>
2017-12-13 13:42:29 +02:00
deflected
bdd53d60fc ShowBase: Fixed crash when want-render2dp is False
- Fixed crash in ShowBase when want-render2dp setting
        is set to 0(False).

Signed-off-by: deflected <deflected@users.noreply.github.com>
2017-12-04 22:46:30 +01:00
deflected
7a46b2ca60 ShowBase: Minor fixes over aspect ratio and size calculations
- Do not take into accound SBS if it is not enabled
        - Always return value for getSize()
        - Properly handle SBS for window-events
        - Redo positioning of aspect2d(p) markers exactly as
        they are created when adjusting aspect ratio

Signed-off-by: deflected <deflected@users.noreply.github.com>
2017-12-04 22:46:22 +01: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
fireclawthefox
936ef1953c Small extensions for the mirror demo
Add extra parameters for buffer size and clear color
Add sample code at the bottom to display usage of mirror demo

Closes: #195
2017-11-12 00:19:50 +01:00
fireclawthefox
feb36d9818 Fixed mirror demo
Set "mirror" camera to always have the same roll as the mirror
-> otherwise the model in the mirror will move unexpectedly
Set y coordinate of the mirror corners to the cameras distance
-> This fixes a crash and keep the mirrored model at correct sizer

Closes: #194
2017-11-12 00:15:58 +01:00
fireclawthefox
649a9abf8d Fix initial usage of letterbox
Set start position of letterbox frames to the hidden position

Closes: #193
2017-11-12 00:06:13 +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
0c0f9adab9 Support coroutines and async/await in the task manager and loader 2017-10-31 18:56:41 +01:00
rdb
51d948a7fa Support compilation for Python 3.7 2017-10-13 12:40:47 +02:00
rdb
5ac3ccb6f6 Remove pointless direct/metalibs directory 2017-10-06 14:54:36 +02:00
rdb
b8cb517152 actor: comment out unused line of code
Fixes #170
2017-09-16 22:04:16 +02:00
rdb
1f017997f9 stdpy: fix issues with direct.stdpy.threading thread cleanup
Fixes: #164
2017-08-30 13:00:02 +02:00
rdb
c66b4792d7 stdpy: protect against thread error when interpreter shuts down 2017-08-29 23:50:16 +02:00
rdb
1dc02f6a28 stdpy: fix direct.stdpy.threading cleanup issue after thread runs
Fixes: #164
2017-08-27 16:56:16 +02:00
rdb
2d1f0e4866 stdpy: update threading modules 2017-08-27 16:53:41 +02:00
kamgha
b9437316b4 Add snake-case function names for 'threading2'-module
Closes: #165
2017-08-27 16:33:03 +02:00
wezu
40c6f41da2 direct: provide snake_case functions for some classes
Closes #147
2017-06-20 21:56:03 +02:00
rdb
3eb91e38b5 CommonFilters: fix edge bleeding when using POT textures (LP 424640) 2017-06-20 19:37:57 +02: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
160f652d58 text: use HarfBuzz for text shaping; support right-to-left text 2017-04-25 12:25:31 +02:00
wezu
353ccfebc1 Remove print() from Messenger.find() and Messenger.findAll()
If one needs to use find() or findAll() not for debugging purposes (like for getting the function or arguments for some binding), then the print functions in these methods are really unwelcome. find() is the only nice way to get this info (other then de-name-mangling __callbacks)
2017-04-22 13:39:14 +02:00
AnythingTechPro
5050aae5c8 Code formatting cleanups in StagedObject
Closes #142
2017-03-30 19:49:30 +02:00
Sam Edwards
fa483357f3 Merge branch 'master' into cmake 2017-03-29 18:28:16 -06:00
Sam Edwards
76070d84cd fsm: Change FourState's debugPrint to a __method
This should stop it from getting overridden by subclasses.
2017-03-29 17:40:10 -06:00
Sam Edwards
6d250f2f1f fsm: FourState needs to initialize stateIndex BEFORE first debugPrint
I honestly have no idea how this even worked before.
2017-03-29 17:40:10 -06:00
Sam Edwards
79f9ac402f Merge branch 'master' into cmake 2017-03-27 01:00:18 -06:00
Sam Edwards
4080e03d05 distributed: Remove use of exceptionLogged() decorator
This isn't available when __debug__==False either.
2017-03-27 01:00:00 -06:00
Sam Edwards
f062c64e9a distributed: Fix broken reference to StackTrace when __debug__==False 2017-03-27 00:56:05 -06:00
Sam Edwards
6926fbfbe6 CMake: Push Python links back to where they're actually needed
This keeps the Panda3D core free of any Python-specific linkage
2017-03-08 01:44:27 -07:00
rdb
88dd3389ee cmake: install header files 2017-02-19 23:42:48 +01:00
Sam Edwards
ed4725afa2 Merge branch 'master' into cmake 2017-02-15 03:46:00 -07:00
fireclawthefox
3318e254b8 Make the scene graph explorer occupy the empty space
Expand the sge to fill up the otherwise unused space below it, which is
useful for larger scenes.
2017-01-26 14:11:41 +01:00
fireclawthefox
78d14fcce3 Fixed function name
getChildren is expected in the MemoryExplorer and not getChildrenAsList
getChildren is also more convenient to the rest of the p3d source
2017-01-26 14:11:41 +01:00
fireclawthefox
8696dcea2c Fixed deprecated usage of NodePath.remove in directtools 2017-01-26 14:11:41 +01:00
Sam Edwards
f1da5ce92f Merge branch 'master' into cmake 2017-01-09 17:59:22 -07:00
rdb
4ed199cece Fix various compile warnings and a few code consistency issues 2017-01-09 20:36:53 +01:00
rdb
53752bd376 Remove packpanda and eggcacher, don't require libpython on Linux 2017-01-05 17:22:11 +01:00
Sam Edwards
dad14499cd Merge branch 'master' into cmake 2016-12-26 17:17:25 -07:00