22734 Commits

Author SHA1 Message Date
Sam Edwards
f0fc6e6d56 express: Fully qualify std::nullptr_t 2018-06-03 16:56:53 -06:00
Sam Edwards
5e82671084 general: Do away with TYPENAME macro 2018-06-03 16:36:34 -06:00
Sam Edwards
a9ffb9630b dtool: Generate code using nullptr over NULL/0 2018-06-03 16:36:07 -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
Sam Edwards
92d2f5e195 general: Don't use NULL where not appropriate 2018-06-03 16:31:01 -06:00
Sam Edwards
d422d74abb general: Clean up asserts which were abusing NULL 2018-06-03 16:26:44 -06:00
Sam Edwards
ebe1b0763f express: Allow WeakPointer comparisons to nullptr
This saves us from having to do casts like:
if (foo == (const FooType *)nullptr) {
  ...
}
2018-06-03 16:26:44 -06:00
rdb
57602d750f cocoadisplay: don't crash if window/buffer fails to open 2018-06-03 22:35:37 +02:00
rdb
eb960669a5 display: fix assert when window fails to open
The assert is being triggered because the window is already being removed in open_windows.  It does not really matter if it returns false anyway, as long as the window is removed one way or another.
2018-06-03 22:33:59 +02:00
rdb
d8bf9d4b55 tests: skip display tests if pipe cannot create offscreen buffers 2018-06-03 22:33:12 +02:00
rdb
c08339e8ce ShaderGenerator: fix error with normal map and only ambient light
Closes #331
2018-06-03 22:30:40 +02:00
rdb
e0245d2777 First step towards eliminating using namespace std; (#335) 2018-06-03 20:32:23 +02:00
rdb
298147bb39 Give several additional classes constexpr constructors
This is useful because these types are created at static init time, and giving them a constexpr constructor and trivial destructor lets them be created during constant initialization, which helps to prevent static init ordering issues.
2018-06-03 10:45:58 -04:00
rdb
21d8c29645 More warning fixes 2018-06-03 06:45:35 -04:00
rdb
213ae6b029 Change some .T files to new docstring style that were missed 2018-06-01 20:44:30 +02:00
Donny Lawrence
d8f3a669c2 Move all the little scripts back into .travis.yml, use less specific paths when searching for openssl and python2.7 2018-06-01 12:47:59 -05:00
Sam Edwards
f54b4b61dd CMake: Don't use pzip when not built 2018-06-01 02:56:43 -06:00
Sam Edwards
7e4f9b4c8e CMake: Make p3directbase a component library 2018-06-01 02:56:43 -06:00
Sam Edwards
407589873a CMake: Update some Windows-specific rules 2018-06-01 02:56:43 -06:00
Sam Edwards
159b43e563 general: Address a few more compiler warnings 2018-06-01 02:54:13 -06:00
Donny Lawrence
3a678fb738 Just use APPLE instead of IS_OSX for compiling in ObjC++ 2018-05-31 22:16:25 -05:00
Donny Lawrence
a70ccf5d13 CMake won't find the right Python 2.7, so tell it where it is. 2018-05-30 19:16:25 -05:00
Sam Edwards
94c7fa30e2 makepanda: Remove a couple of unused config macros 2018-05-30 17:28:40 -06:00
rdb
283d43f988 putil: workaround macOS 10.6 compile error until #300 is fixed
[skip ci]
2018-05-30 23:29:59 +02:00
rdb
190c553c57 dtool_config.h: remove some macros for ancient C++ compilers 2018-05-30 23:15:24 +02:00
rdb
4f55e26e61 tests: add tests for BitMask*.is_all_on() 2018-05-30 23:06:47 +02:00
rdb
aa1b06f132 putil: make BitMask et al literal types 2018-05-30 23:04:43 +02:00
rdb
db5dd98d33 general: further warning fixes, use -Wno-unused-variable if NDEBUG
Disabling unused variable checking is needed in NDEBUG builds because of the heavy use of temporary variables in asserts.
2018-05-30 22:51:04 +02:00
Sam Edwards
1c6ae84cdc dtoolutil: Remove HAVE_OPEN_MASK
Rationale:
1. Per standard, fstream::open takes 2 arguments.
   If platforms add a third, they're out of spec.
2. The only platform I could find that takes a file
   mask specifically as the third argument is IRIX,
   which Panda hasn't targeted in forever.
3. The mask being requested isn't even particularly
   interesting - falling back to a platform default
   is best.
4. When USE_PANDAFILESTREAM is defined, pfstream
   is implemented as PandaFileStream, which doesn't
   have a three-argument open() and breaks immediately.
5. makepanda doesn't ever define HAVE_OPEN_MASK
6. It's been broken for so long that, if it were
   important to anybody, it would have been fixed by now.
2018-05-30 12:04:06 -06:00
Sam Edwards
00e259d4dd dtoolbase: Fixup NODEFAULT macro
1. Test for Clang before _MSC_VER (Clang defines this on Windows)
2. Use it in pdtoa.cxx
2018-05-30 11:50:09 -06:00
Donny Lawrence
0f241837be Remove --python flag since we know we're running the proper python 2018-05-30 10:07:34 -05:00
Donny Lawrence
09009ca1a4 Be more specific in which python interpreter we want to run 2018-05-30 10:05:37 -05:00
rdb
c17cb11dfa makepanda: enable more warnings by default 2018-05-30 11:12:15 +02:00
rdb
6b726fa697 general: fix various compiler warnings and issues exposed thereby 2018-05-30 11:09:35 +02:00
Psychotropos
3029780f88 dtoolutil: Don't assume RTLD_DI_ORIGIN and RTLD_SELF are present, fall back to using RTLD_DI_LINKMAP if necessary
Closes #334
2018-05-30 11:04:12 +02:00
Psychotropos
314cee133a dtoolbase: The bug in question is glibc-specific, treat it as such. 2018-05-30 09:07:16 +02:00
Sam Edwards
d0ced03ffd CMake: Build direct.motiontrail
This covers pretty much all of direct, except for directd.
2018-05-29 22:57:28 -06:00
Sam Edwards
32e1ca2252 general: Fix several miscategorized EXPCL_PANDA_* macros 2018-05-29 22:49:35 -06:00
Sam Edwards
4b70cb162e CMake: Don't metalib p3distributed when not built 2018-05-29 22:47:28 -06:00
Donny Lawrence
a270b0f292 Merge branch 'cmake' of https://github.com/panda3d/panda3d into cmake 2018-05-29 22:55:21 -05:00
Donny Lawrence
5619c3ed90 Make sure HAVE_OPENAL_FRAMEWORK is set correctly 2018-05-29 21:58:43 -05:00
Donny Lawrence
a8954d7f67 Don't build GLX support if on macOS 2018-05-29 21:49:00 -05:00
Donny Lawrence
18817e6848 Add travis builds for macOS
This also trims down the build matrix.
2018-05-29 21:08:08 -05:00
Sam Edwards
e05380509b CMake: Adjust several forgotten component libraries 2018-05-29 19:48:35 -06:00
Donny Lawrence
87a05913f8 Remove redundant conditional, add missing newline 2018-05-28 17:38:32 -05:00
Donny Lawrence
ef0170388f Only link X11 with p3display if HAVE_X11 is enabled. 2018-05-28 16:13:26 -05:00
Donny Lawrence
e0bc369174 Make sure libs are installed, delete extraneous whitespace 2018-05-28 15:57:15 -05:00
Sam Edwards
527e4840ff makepanda: Fix table alignment 2018-05-27 14:11:55 -06:00
Sam Edwards
827f322d0e CMake: Update for upstream change 2018-05-27 14:07:26 -06:00
Sam Edwards
d0ebc59d32 Merge branch 'master' into cmake 2018-05-27 14:07:05 -06:00