Commit Graph

47 Commits

Author SHA1 Message Date
Sam Edwards a9dfd8352e general: Distinguish local/system includes
This changes includes so that local includes are consistently
#include "localFile.h"
while system and third-party includes are consistently
#include <systemFile.h>

This commit mostly converts the former to the latter; the two
exceptions are in android_main.cxx and fmodAudioSound.h, where
the reverse was necessary.
2018-11-10 18:00:10 -07:00
Sam Edwards 4695557a5d general: Don't require BUILDING_* for static builds 2018-08-31 23:54:32 -06:00
rdb c6ed4e1836 general: don't cast to regular pointer when returning a PointerTo
This is inefficient because it induces an unnecessary ref()/unref() pair when we just need to move the pointer out of the function.  Thanks to 23128e4695, we can now move between related pointer types, making the .p() hack unnecessary.
2018-07-08 21:40:58 +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 7790f8429d general: Fully qualify header references into the std namespace
Closes #341
2018-06-07 10:35:12 +02: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 d422d74abb general: Clean up asserts which were abusing NULL 2018-06-03 16:26:44 -06:00
rdb e0245d2777 First step towards eliminating `using namespace std;` (#335) 2018-06-03 20:32:23 +02:00
rdb 3077316782 general: use proper deleted funcs instead of stubs with asserts
This gives better compile-time diagnostics and saves on code, while also better communicating intent.
2018-05-23 23:35:27 +02:00
Sam Edwards 52e7c952b3 putil: Rename config_util to config_putil 2018-05-14 02:36:42 -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
rdb dd2806c8bd Mark constructors 'explicit' for which coercion makes no sense 2017-11-06 19:47:38 +01:00
rdb d1c34c3360 interrogate: support static properties 2017-08-07 22:04:56 +02:00
Mitchell Stokes 59b0913b0b Cleanup .gitignore files
Remove all .gitignore files in subdirectories and add a few new ignores
to the top-level directory .gitignore file.
2016-10-30 20:06:12 -07:00
rdb dc09e28ed9 Also accept a .gz wherever a .pz file is accepted 2016-04-29 16:54:25 +02:00
tobspr 0fcfb8e372 New file headers, new comment style 2016-02-17 17:47:48 +01:00
rdb db3ab953e4 Remove ppremake, genPyCode, and all hacks created to support them 2015-11-09 19:06:49 +01:00
rdb 16e7831566 Remove executable permissions from files that don't need them 2015-04-05 15:41:49 +02:00
rdb eaabc1bfa5 Add ConfigVariableColor 2015-02-05 13:34:52 +01:00
rdb 0ad0d4ec33 Further optimizations to the cull pipeline.
The only transform still stored in CullableObject is internal transform.

NB: I haven't tested my PipeOcclusionCullTraverser changes.  Please contact me if you encounter problems with it.
2015-01-22 16:22:16 +01:00
David Rose 9a93914d58 properly support a different coordinate system per camera (or lens) 2012-03-14 20:51:58 +00:00
David Rose e9b967435e more win32 build issues 2011-12-20 20:26:08 +00:00
David Rose 622c047344 several USE_PACKAGES oopses 2011-12-12 22:53:39 +00:00
David Rose dfe16c64f6 rename all Panda-built libraries to begin with libp3 or libpanda 2011-12-06 02:39:21 +00:00
David Rose 05c6cc00a4 build in stdfloat_double 2011-10-11 17:28:03 +00:00
David Rose 501470169f stdfloat_double 2011-10-10 05:25:10 +00:00
David Rose 4b86327663 include config_speedtree.h 2011-07-27 18:11:12 +00:00
David Rose 0cf03bc158 untabify 2011-06-29 22:09:10 +00:00
David Rose a552cfa859 add time_delta interfaces 2011-06-02 18:21:33 +00:00
David Rose 1c8d2859f1 add_random_instances(), get_slope() 2010-10-14 21:12:54 +00:00
David Rose 593393dd64 speedtree win64 2010-10-14 16:57:00 +00:00
David Rose f85ccdf0f3 pstats 2010-10-14 00:31:36 +00:00
David Rose 71e686ab5a more config variable polish 2010-10-13 23:18:33 +00:00
David Rose 267114bd09 shadows 2010-10-13 23:08:57 +00:00
David Rose b4a5ac7a25 bam files 2010-10-13 18:40:06 +00:00
David Rose 1bd404eaa8 clean up output a bit 2010-10-13 00:14:15 +00:00
David Rose c7628bb9f1 minor fixes 2010-10-12 23:57:33 +00:00
David Rose d93aac8ad8 terrain 2010-10-12 23:12:51 +00:00
David Rose 67df80cd1b config variables 2010-10-09 01:18:19 +00:00
David Rose 66099fdce8 missing includes 2010-10-09 00:15:26 +00:00
David Rose 0596c3990d speedtree dx9 2010-10-08 21:32:15 +00:00
David Rose 6f69411aac flatten 2010-10-08 21:11:39 +00:00
David Rose dcdbe1b699 cvsignore 2010-10-08 18:42:25 +00:00
David Rose 4fb98a7f95 lighting 2010-10-08 18:41:42 +00:00
David Rose 71689ea198 stf files 2010-10-08 00:27:49 +00:00
David Rose 48c6a8756a speedtree refinements 2010-10-07 23:17:28 +00:00
David Rose d0db1d1f07 SpeedTree: first pass 2010-10-07 23:04:46 +00:00