Commit Graph

177 Commits

Author SHA1 Message Date
Sam Edwards 6f62396373 general: Resolve a few compiler warnings
- display: GraphicsWindowProc should have a virtual destructor,
           as it's meant to be subclassed.

- express: set_matrix_view helper should always fail an assert
           when 'size' is wrong, even on release builds.

- express: Fix filename capitalization on some #includes.
           They're normally Windows-only, where case doesn't
           matter, but it's better to be consistent.

- gobj: Fix typo.

- particlesystem: Remove BaseParticle::_last_position.
                  Last position is tracked by PhysicsObject now.

- windisplay: Heed warnings about casting bool to (PVOID).
              Also, per MSDN docs, SPI_SETMOUSETRAILS uses the
              uiParam argument and ignores pvParam, so pass the
              _saved_mouse_trails value in that way.
2018-10-12 15:37:40 -06:00
Sam Edwards 4695557a5d general: Don't require BUILDING_* for static builds 2018-08-31 23:54:32 -06:00
rdb 886e1c2f16 general: fix many compilation warnings in GCC 8 2018-06-19 00:37:28 +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 e73c25d15e general: Break apart BUILDING_PANDAPHYSICS 2018-06-12 16:15:04 -06: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
rdb 6b726fa697 general: fix various compiler warnings and issues exposed thereby 2018-05-30 11:09:35 +02: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
Sam Edwards 6b8f78c9e0 general: Fix missing includes. 2016-03-15 18:30:24 -07:00
tobspr 0fcfb8e372 New file headers, new comment style 2016-02-17 17:47:48 +01:00
rdb 090e912ce6 Cleanup of comments and whitespace 2016-02-01 22:30:43 +01:00
rdb f12e2b5f68 Merge branch 'release/1.9.x' 2015-12-25 17:02:56 +01:00
rdb 2f7c8e8e97 Fix typo in error message 2015-12-25 17:00:40 +01:00
rdb 5406fab702 Merge branch 'release/1.9.x' 2015-12-24 16:18:22 +01:00
rdb 86eef29974 Error instead of crash if no spawn templates are present (with thanks to tobspr) 2015-12-24 16:11:16 +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 a58ddb3cfa Add missing EXPCL_PANDAPHYSICS 2014-02-20 23:10:59 +00:00
David Rose 8b3ec4b1ba pass by reference 2011-12-20 00:10:11 +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 007b7d3f9e tracking down memory leaks 2011-09-08 02:28:14 +00:00
David Rose 87ebb4f32c fix GeomVertexRewriter::set_row() problem with empty data; add GeomVertexReader/Writer::set_row_unsafe(); fix some compiler warnings 2011-06-17 18:57:04 +00:00
rdb c3b3113a1a Fix particle system crash on Windows when system grows older flag is True 2009-07-17 05:31:22 +00:00
David Rose 38d46bdebc minor fixes with published methods 2009-04-01 18:46:16 +00:00
David Rose a1ce73a85c fix particle color 2009-01-09 04:06:42 +00:00
Przemyslaw Iwanowski 86ee18fd71 adding setUniformEmission function to ringEmitter 2008-11-26 01:45:43 +00:00
David Rose 58e0537e3c wide interrogate improvements: sequence protocol, MAKE_SEQ, __setitem__, and parameter coercion 2008-11-07 21:12:42 +00:00
David Rose fb9c56432a we are now using the modified BSD license 2008-05-28 18:37:20 +00:00
David Rose 0c56b38f6a name vdatas after type of particle 2007-10-25 21:18:58 +00:00
David Rose d517b00688 UH_dynamic -> UH_stream 2007-10-19 15:33:32 +00:00
David Rose 00c57128bb fix backwards logic 2007-10-02 18:26:04 +00:00
Zachary Pavlov de6920d9aa safety checks for the sprite particle renderer. These are nice for opt 4 builds 2007-10-02 00:24:08 +00:00
Asad M. Zaman 558999a774 from prezmek: 2007-08-10 02:41:20 +00:00
David Rose 385e7be325 still more meminfo fixes 2007-06-29 15:53:27 +00:00
David Rose 79474cfdf6 release write locks after writing 2007-06-22 23:34:31 +00:00
Josh Wilson 176e3f7129 "angles now more in line with panda's coordinate system" 2007-05-10 23:13:32 +00:00
Darren Ranalli 2848f047c9 call ParticleSystem::init_type() 2007-05-08 21:09:04 +00:00
David Rose 63edecf517 faster sprite particles 2007-02-08 19:56:33 +00:00
Asad M. Zaman 49307714d1 added pstat calipers to sprite particles 2007-02-06 00:34:29 +00:00
Josh Wilson 46fbc1d64d init lists 2007-02-01 01:13:35 +00:00
Josh Wilson e17e870997 assert that mass spread is < base mass 2007-02-01 01:13:13 +00:00
David Rose 9ef8e468e5 correct filename case 2006-11-13 21:31:42 +00:00
Josh Wilson 7d12be589f added ArcEmitter 2006-11-13 00:47:48 +00:00
Josh Wilson 409fc0d9a3 arcEmitter works like ringEmitter except you can constrain the particles to a an arc on the ring. usefull for splitting a single particle system into an 'in front' and 'behind' pair 2006-11-13 00:47:11 +00:00
David Rose d202b5e0e2 allow particle systems to be placed under an instance 2006-07-27 00:24:34 +00:00
Josh Wilson 6208912868 updated comments 2006-07-25 01:40:46 +00:00