rdb
15b88283b2
Merge branch 'master' of github.com:panda3d/panda3d
2014-12-03 21:53:58 +01:00
rdb
b3fd8b94ad
Interrogate should be able to parse any constexpr as enum value, including one that references a different enum value
2014-12-03 21:51:58 +01:00
David Rose
ad449848c2
extend .gitignores for more ppremake files
2014-12-02 09:48:04 -08:00
rdb
4c10c9ec1f
Oops, fix GCC
2014-11-26 21:14:35 +00:00
rdb
861234c349
Bunch of minor compile fixes and changes
2014-11-26 13:33:10 +00:00
rdb
3490be94b7
Fix deadlock issues with type registry
2014-11-21 16:51:36 +00:00
rdb
c3bf91d608
GCC atomics also work in clang 3.0+
2014-10-21 20:49:58 +00: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
f3094043df
Fix left shift in Python (LP bug #1289475 )
2014-10-19 15:50:54 +00:00
rdb
31a71c990d
Fix issues with OS X 10.9 compilation, fix issues uncovered by clang
2014-10-12 18:45:37 +00:00
rdb
3ed7ae0bd9
Oops; fix memory leak
2014-10-10 13:54:53 +00:00
rdb
902bedc314
Fix Python 3 crash on Windows, and fix some Python 3-related compile errors
2014-10-10 13:45:05 +00:00
rdb
fbc3564bf9
More work on Android port
2014-10-08 15:09:25 +00:00
rdb
0a84dd9ca3
Android fixes
2014-10-06 17:44:58 +00:00
rdb
24386cdc1e
Use a table to make InternalName::make more efficient for Python interned strings
2014-10-02 18:28:06 +00:00
rdb
778b4390f4
Temporary fix for Python 3 compilation error
2014-09-21 13:37:32 +00:00
rdb
db7a6561f2
When finding comment for an enum, don't accidentally pick up a same-line comment of an enum value on the preceding line
2014-09-21 13:22:52 +00:00
rdb
d9c529a5d0
Update prebuild cppBison files
2014-09-20 11:54:04 +00:00
rdb
a6229f1fac
Support for comments in enums. Improve comment handling in C++ parser. Improve doxygen reference. Update interrogate interface. (Addendum to interrogatedb v2.3.)
2014-09-19 23:34:11 +00:00
rdb
c178aba639
Add property support to interrogate (using MAKE_PROPERTY or using published members)
2014-09-19 15:23:52 +00:00
rdb
8afd8b1f57
interrogatedb v2.3: elements can have comments
2014-09-19 15:18:08 +00:00
rdb
30d8cc29b3
Rewrite handling of stringify and token-paste operators to work better. Add support for variadic macros.
2014-09-19 15:14:11 +00:00
rdb
87910799b6
Split off epvector.h into its own file in an attempt to cut down compilation time
2014-09-14 22:04:36 +00:00
rdb
5437a3e5a9
Allow const variables with initializers to be used in expressions (like enum definitions). Also fix compiler warning.
2014-09-14 22:02:16 +00:00
rdb
a044561be5
*Always* check for exceptions in C++ methods, otherwise we miss important exceptions thrown in Python code called by C++ methods (like SystemExit!)
2014-08-26 21:01:12 +00:00
rdb
e468b293d1
Fix a longstanding memory leak in certain interrogate exception handlers.
...
Raise MemoryError when constructor returns NULL.
Properly check argument count of constructors that take no arguments.
2014-08-26 17:17:37 +00:00
rdb
ab5e4f496b
Fix cmath includes on GNU
2014-08-21 17:00:57 +00:00
rdb
4db966f431
GNU needs #include <limits> for numeric_limits
2014-08-21 16:54:44 +00:00
rdb
a7f2f50236
Move string_utils.* to from putil to dtoolutil
2014-08-20 19:33:55 +00:00
rdb
515f93a0b8
Better handling of nan/infinity. Previously, these weren't working on Windows in config strings.
2014-08-20 19:32:11 +00:00
rdb
24d705b031
The "null" ButtonHandle and TypeHandle now evaluate to false
2014-07-29 11:15:12 +00:00
rdb
3e974abf5d
Fix silly bug with longs
2014-07-23 17:41:22 +00:00
rdb
f02662d4e0
Improve interrogate code readability, use METH_STATIC for static methods, support anonymous enums
2014-07-22 20:06:59 +00:00
rdb
e98618b105
Only use constexpr when the compiler conforms to C++11
2014-07-21 15:41:31 +00:00
rdb
c257ce624e
Interrogate overhaul that dramatically increases performance for the simpler methods
2014-07-18 13:54:38 +00:00
rdb
dba717fe83
GCC 4.7 enables constexpr, not 4.6
2014-07-17 16:18:04 +00:00
rdb
1be0fb5169
Add atomic adjust impl that uses GCC intrinsics. Also, make use of "constexpr" when available.
2014-07-17 13:11:06 +00:00
rdb
cba254d0bc
Add wstring type handle. Also add some useful MAKE_SEQs.
2014-06-26 20:06:04 +00:00
rdb
c33ef307d6
Delete MesaGL renderer, it seems not to be used any more
2014-06-18 14:59:11 +00:00
rdb
5dae464394
Add integer vectors. Also add __pow__ operator to vectors.
2014-06-11 18:01:50 +00:00
rdb
634190281d
Support __pow__ in interrogate
2014-06-11 17:17:45 +00:00
rdb
5b967671fa
Fix Python 3 build issue with iterator extensions
2014-05-23 13:42:26 +00:00
rdb
d5d5de1d7e
Make iterators work with interrogate by mapping None to NULL for the iternext method. Not the best solution, but is easy and fits most use cases.
2014-03-27 15:15:58 +00:00
rdb
31a192f27b
Fix interrogate understanding of PY_VERSION_HEX
2014-03-09 11:43:08 +00:00
rdb
ae4bddd7f7
Fix Python 3 compile issue
2014-03-09 01:00:23 +00:00
rdb
c213712600
fix windows build when the module is in different dll than the library defs
2014-02-20 18:38:35 +00:00
rdb
5f2c0a6e04
Big commit aiding in separation of Python bindings:
...
* Most extension functions have been moved to C++.
* In makepanda, Python bindings are compiled into panda3d/<module>.pyd.
2014-02-20 13:33:26 +00:00
rdb
3070f18c24
Add assertion in a case where I've seen an occasional crash
2014-02-19 08:38:57 +00:00
rdb
a10bbe9c9e
One more pystub symbol for Python 3 that's used in direct
2013-12-23 21:06:20 +00:00
rdb
4944d7cd7b
use compare_to and get_class_type instead of compareTo and getClassType
2013-12-18 10:24:00 +00:00
rdb
708e8dc513
Remove HAVE_GETTIMEOFDAY which we aren't using
2013-12-17 18:01:54 +00:00
rdb
f29c4681e1
Fix broken Python 3 support.
2013-12-17 17:42:16 +00:00
rdb
634c3c5a0a
Stubs for Python 3 functions
2013-12-17 15:03:30 +00:00
rdb
b4714bcdf1
no place in the source uses HAVE_GETTIMEOFDAY, and it conflicts with Python, so let's simply not define it
2013-12-12 17:20:14 +00:00
rdb
5b1ea47fee
add F_operator flag
2013-11-18 18:37:27 +00:00
rdb
52e4acc0ce
fix a crash with the python-obj, python and c interface makers
2013-11-08 10:30:27 +00:00
rdb
c3e862a842
Add is_double and is_short
2013-11-08 10:25:45 +00:00
rdb
7926a5fa7b
backward compatibility with Python 2.7
2013-10-27 18:51:20 +00:00
rdb
0d656a6848
fix typo. thanks to heek_
2013-09-19 08:04:15 +00:00
rdb
b7b9adfd35
compile fixes
2013-09-18 23:35:15 +00:00
rdb
d2720d4365
fix line endings
2013-09-17 15:23:14 +00:00
rdb
cc3bae7e76
Big interrogate cleanup, new extension system, add __iter__ support, add buffer protocol support
2013-09-17 10:11:43 +00:00
rdb
8fff339477
A lot of code cleanup
2013-09-01 15:05:43 +00:00
David Rose
0ea9b5e224
update ffmpeg libraries
2013-08-26 23:09:00 +00:00
David Rose
a16238932a
looks like we had a long-term confusion for LFLAGS as a set of linker flags and as a set of flex flags. Renamed LFLAGS to FLEXFLAGS for flex input.
2013-08-26 22:44:22 +00:00
rdb
c0d78d57d4
Can we just use streamoff instead of ssize_t?
2013-08-26 15:45:14 +00:00
rdb
461fdfdddc
fix compile error on MSVC, where ssize_t doesn't exist (but SSIZE_T does)
2013-08-26 14:38:55 +00:00
rdb
4b2c64d73f
Add libp3vrpn to genpycode list.
2013-08-26 12:18:38 +00:00
rdb
30f1f50e78
Add vorbis package definition in ppremake in anticipation of ogg vorbis support. Also, remove unnecessary HAVE_VORBIS from dtool_config.h.
2013-08-25 17:38:45 +00:00
rdb
41d851db86
for some reason ppremake needs these files to be here
2013-08-25 17:30:29 +00:00
rdb
d58924c280
add OculusVR and ogg/vorbis headers in anticipation of their support
2013-08-25 17:18:02 +00:00
rdb
abc5c381be
fix interrogate compile error when a function takes a non-const char pointer
2013-08-24 19:26:06 +00:00
David Rose
93afeb40f2
By interrogate conventions, char * means a string, while unsigned char * means a data buffer.
2013-08-23 22:26:17 +00:00
rdb
266890c86a
Add version of extract_bytes that extracts into character buffer
2013-08-23 15:03:01 +00:00
rdb
03e96d8c4a
Uff, this should bring Panda up to date with the latest version of ffmpeg. We now use AVIOContext instead of URLProtocol, avcodec_decode_audio4 instead of 3, and add support for libswresample to resample the input data to 16-bits signed int since some codecs now give float data. If this breaks anyone's build, please, just consider updating your ffmpeg version.
2013-08-22 18:20:10 +00:00
rdb
90770727c0
Add LONGLONG
2013-08-21 06:44:41 +00:00
rdb
2c8dc6ac31
explicitly specify /MANIFEST for MSVC9x64 as well
2013-08-18 19:10:32 +00:00
enn0x
a343eef6b1
Adding minkowski sum shape.
2013-08-14 23:31:42 +00:00
David Rose
dba661253a
Fix handling of large (>2GB) files on Windows. Egad, off_t is 32 bits on Windows, even in 64-bit Windows. Ridiculous.
2013-08-01 00:10:20 +00:00
enn0x
1e28f892be
Support for driving Bullet soft body joints.
2013-05-22 09:50:55 +00:00
rdb
cbbe02f879
fix 64-bit bullet lib location on windows
2013-05-14 21:15:08 +00:00
rdb
fec189c225
_WIN32 should also be defined on 64-bits Windows
2013-05-06 11:23:26 +00:00
David Rose
67770fa3dc
whoops, nan() and nanf() require a parameter
2013-05-04 01:10:42 +00:00
David Rose
e0238675f3
make_nan()
2013-05-03 18:05:28 +00:00
David Rose
c32becb2a1
rename_to() and copy_to() are heavy operations and should be BLOCKING
2013-04-12 03:36:49 +00:00
rdb
b1d397a58a
regenerate the file to avoid future confusion
2013-04-01 21:50:40 +00:00
enn0x
8deb2f40b1
Name of Python init function should match library filename.
2013-04-01 16:58:58 +00:00
rdb
40cddd6280
Fixes for Python 3.2
2013-03-27 15:48:24 +00:00
enn0x
6bb5fdc5e0
Support for Bullet v2.81
2013-03-26 09:35:30 +00:00
David Rose
5178fb9523
fix problem with infinite recursion on coercion within constructors
2013-03-25 15:15:08 +00:00
rdb
d4d93c5d3f
Add PyExc_Exception
2013-03-07 11:04:19 +00:00
rdb
e1fda64ad3
add PyObject_RichCompareBool
2013-03-06 18:15:12 +00:00
enn0x
65b698217f
Added angular/linear motors for 6DOF constraint.
2013-03-03 22:29:11 +00:00
rdb
a9014cf933
reenable tp_richcompare (thanks David)
2013-02-20 10:44:48 +00:00
David Rose
53b472756b
fix rich compare
2013-02-20 00:37:12 +00:00
rdb
c5bc7790ae
Add PyLong_AsSsize_t
2013-02-19 22:41:38 +00:00
rdb
dc20f793b6
Support Python 2.5
2013-02-19 22:24:40 +00:00
rdb
da44b3ae3b
oops, disable broken rich compare for now
2013-02-19 19:21:41 +00:00
rdb
f3c2b51084
Add PyUnicode_FromStringAndSize
2013-02-19 19:01:43 +00:00
rdb
0f8361d730
Fix compile errors with Python 2
2013-02-18 12:28:52 +00:00
rdb
0925d9265f
fix oops
2013-02-18 11:35:20 +00:00
rdb
eb6eeb6d02
fix compile error
2013-02-17 22:53:48 +00:00
rdb
192d10b937
Experimental Python 3 support to the C++ code including interrogate. Also adds support for rich comparison in interrogate.
2013-02-16 19:22:26 +00:00
rdb
441666fb79
Compile with Python 3.3
2013-02-15 07:57:20 +00:00
rdb
c26c0e6a97
Android support, part 1
2013-01-24 17:54:56 +00:00
rdb
56f7c3edf2
fix for Android compile
2013-01-07 12:45:59 +00:00
David Rose
474e26e951
fix set_case_sensitive() and match_files()
2012-11-16 02:22:20 +00:00
rdb
21c922c7cd
Some fixes for ppremake+bullet
2012-10-25 22:03:04 +00:00
rdb
91e305789a
Add ppremake package for bullet
2012-10-25 10:03:55 +00:00
rdb
0d7773d30a
Fix typo
2012-10-19 13:06:01 +00:00
David Rose
0b585cff0b
add get_systems()
2012-10-03 21:58:48 +00:00
David Rose
88ef2618eb
use win_amd64 instead of win64, and win_i386 instead of win32
2012-10-02 00:00:50 +00:00
David Rose
c88c480b6f
expose more "environment" variables on Windows
2012-09-17 19:29:06 +00:00
David Rose
9daf081364
p3d supports win64
2012-08-13 23:13:23 +00:00
rdb
916f5ff2f7
bump version to 1.9.0
2012-08-11 15:17:31 +00:00
David Rose
5ae679ccc9
build issue
2012-08-08 00:31:12 +00:00
rdb
30872b617e
somewhat experimental support for 64-bits OS X and OS X Lion
2012-08-06 09:57:34 +00:00
rdb
05aa20ee3f
force pystub to be linked into interrogate and interrogate_module
2012-07-20 10:10:38 +00:00
David Rose
bf03940bcb
opencv 2.3
2012-07-08 20:04:33 +00:00
David Rose
243339c080
opencv might require QuickTime.framework
2012-06-29 01:03:44 +00:00
David Rose
97f805b24a
pystub should be a static library for better portability, especially for dynamic loaders that aren't so awesome.
2012-06-20 21:41:49 +00:00
enn0x
ad54aff016
Exposed CCD for PhysX.
2012-04-30 22:45:12 +00:00
rdb
608643da5a
another fix for .this -> T_ULONG
2012-03-09 22:26:59 +00:00
rdb
a96c08b5c8
this should fix obj.this on 64-bits architectures
2012-03-09 21:32:47 +00:00
enn0x
4546fb9e77
(Perhaps) fixing BulletContact crashes on Linux
2012-02-27 22:46:42 +00:00
David Rose
a572d1a413
shouldn't automatically build a dependency on Windows 7
2012-02-22 18:43:56 +00:00
rdb
562296e694
add support for the libRocket debugger
2012-02-19 12:20:16 +00:00
enn0x
1d5b7d4c55
Exposing btWheelInfo::RaycastInfo.
2012-02-17 21:37:05 +00:00
David Rose
646f12f625
squelch backtrace on SystemExit
2012-02-16 00:19:09 +00:00
David Rose
4820b4a2db
fix more static-init ordering issues caused by new alignment code
2012-02-12 19:55:52 +00:00
rdb
d290a193ad
Fix static init ordering issue with the runtime build
2012-02-10 09:19:12 +00:00
David Rose
876956defb
ConfigVariableFilename::get_value() should return a concrete, not a reference
2012-02-06 23:18:49 +00:00
David Rose
e893b91a17
unify mayapath.cxx and mayaWrapper.cxx
2012-02-02 17:45:48 +00:00
rdb
c76d2cd226
it's p3dtoolconfig in ppremake too now, David
2012-02-01 15:13:07 +00:00
David Rose
903569a729
don't build glx if no x11
2012-01-09 14:58:18 +00:00
rdb
11189c99b7
Add libRocket compilation instructions to Config.prc. Will commit actual Rocket integration soon
2012-01-06 12:28:31 +00:00
enn0x
e68cb77e4a
Added wrapper for btMultiSphereShape.
2012-01-05 13:07:38 +00:00
David Rose
f666607adc
expose match_files() to python usefully
2011-12-29 18:05:12 +00:00
David Rose
a06fd5521f
found a reason to use dlmalloc if 16-byte alignment is required
2011-12-22 22:44:31 +00:00
David Rose
f6a32897ba
build correctly without DO_MEMORY_USAGE
2011-12-21 02:31:37 +00:00
David Rose
9326f5be54
compiler warnings
2011-12-21 01:39:47 +00:00
David Rose
6e5dd2cc63
fix memory crashes on win32/Eigen build
2011-12-21 01:25:38 +00:00
David Rose
e04c446b1c
add eigen to makepanda
2011-12-19 17:36:40 +00:00
David Rose
1cf7a1fd79
define epvector
2011-12-19 15:14:29 +00:00
David Rose
66a52cb6a3
fix MemoryHook internal memory alignment issues
2011-12-18 19:20:18 +00:00
David Rose
c5c21a566a
UnalignedLVecBase etc, remove lerp etc, moving towards Eigen on win32
2011-12-18 16:30:31 +00:00
David Rose
787742c93e
LINMATH_VECTORIZE -> LINMATH_ALIGN
2011-12-18 02:00:31 +00:00
David Rose
56fb33bf00
enforce alignment policies even when malloc() doesn't.
2011-12-18 01:55:22 +00:00
David Rose
702045608d
report allocation attempt when out of memory
2011-12-17 01:57:05 +00:00
David Rose
5933da3f05
auto-detect Eigen
2011-12-16 14:20:25 +00:00