Sam Edwards
ed2b3017d4
Merge branch 'master' into local/cmake-merge
2018-06-12 16:19:30 -06:00
Sam Edwards
69d5fcf3b0
pgraph: Fix use of incomplete GeomNode in PT(GeomNode)
2018-06-12 16:18:15 -06:00
Sam Edwards
a971bc1dfc
general: Break apart BUILDING_PANDAGL
2018-06-12 16:15:45 -06:00
Sam Edwards
768f78306a
general: Break apart BUILDING_PANDAEGG
2018-06-12 16:15:25 -06:00
Sam Edwards
e73c25d15e
general: Break apart BUILDING_PANDAPHYSICS
2018-06-12 16:15:04 -06:00
Sam Edwards
7e61891c09
general: Fix more DLL linkage and EXPCL_PANDA_ macros
2018-06-12 16:14:33 -06:00
rdb
eab8b1c7a3
tform: MouseWatcher sort should uniquify duplicates
...
Also change the code to use range-for when appropriate, which improves code readability.
2018-06-12 13:44:24 +02:00
rdb
65217a258d
tform: allow calling MouseWatcher::add_region with same region twice
...
Previously, this was an error. Now, it will simply silently be ignored, making it behave more like a set.
2018-06-12 12:45:48 +02:00
rdb
b88bd99704
Various compiler warning fixes
2018-06-12 12:38:07 +02:00
rdb
494ba40c5e
Fix compilation error on Android
2018-06-11 14:35:37 +02:00
Sam Edwards
2e98b68e3b
CMake: Make directbase/pandabase INTERFACE libraries
...
They export no code, and are really only used to contain several
preprocessor macros relevant to their respective packages. On
Windows, they're a problem: MSVC doesn't generate a .lib when
compiling a .dll that exports nothing.
2018-06-10 02:29:49 -06:00
Sam Edwards
1fe9034ba0
CMake: Don't build ca_bundle_data_src.c
...
It only contains statics, and it's intended to be #included
2018-06-10 02:29:42 -06:00
Sam Edwards
61ce0218e8
CMake: Don't use BUILDING_PANDAEXPRESS
2018-06-10 02:29:40 -06:00
Sam Edwards
a088e6aba5
CMake: Autogenerate metalib init files
2018-06-10 02:29:35 -06:00
Sam Edwards
c4126942f6
Merge branch 'master' into cmake
2018-06-10 02:29:21 -06:00
Sam Edwards
bc596797a3
general: Resolve some warnings unique to Windows
2018-06-10 02:25:10 -06:00
Sam Edwards
3c6ebb56bd
general: pvector<unsigned char> -> vector_uchar
2018-06-10 02:25:10 -06:00
Sam Edwards
f1eb811c0e
general: Break apart BUILDING_PANDAEXPRESS
2018-06-10 01:37:31 -06:00
Sam Edwards
b8bc1bb5e9
gobj: Include, don't forward-declare, BamCacheRecord in shader.h
...
Closes #346
2018-06-10 01:37:13 -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
b7f8ddfe35
dxgsg9: fix type mismatch in min() call
2018-06-07 10:34:47 +02:00
Sam Edwards
592a2e2d68
Merge branch 'master' into cmake
2018-06-06 13:18:12 -06:00
rdb
8a9d83b604
physx: fix compile error
2018-06-04 17:28:13 +02:00
rdb
be282627a8
express: make PointerTo directly initializable from nullptr
2018-06-04 11:21:18 +02:00
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
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
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
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
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
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
rdb
6b726fa697
general: fix various compiler warnings and issues exposed thereby
2018-05-30 11:09:35 +02:00
Sam Edwards
32e1ca2252
general: Fix several miscategorized EXPCL_PANDA_* macros
2018-05-29 22:49:35 -06:00
Sam Edwards
e05380509b
CMake: Adjust several forgotten component libraries
2018-05-29 19:48:35 -06:00
Sam Edwards
d0ebc59d32
Merge branch 'master' into cmake
2018-05-27 14:07:05 -06:00
Sam Edwards
a251c6dd8f
general: Change HAVE_LOCKF to PHAVE_LOCKF
...
HAVE_LOCKF is already defined by pyconfig.h in
(at least) Python 3.6 - changing the macro name
here avoids warnings
2018-05-27 14:06:14 -06:00
Sam Edwards
24c8ef9887
general: Fix missing include
2018-05-27 14:06:08 -06:00
rdb
8d84c58d73
express: explicitly declare defaulted Datagram copy/move ctor/assign
...
Fixes #329
2018-05-27 15:38:19 +02:00