Commit Graph

176 Commits

Author SHA1 Message Date
rdb cf4f8b35b6 pgui: fix deadlock in PGScrollFrame/PGSliderBar 2018-09-04 12:58:37 +02:00
rdb 217cecb77f pgui: remove some unnecessary reentrant locking in PGItem 2018-09-04 12:02:13 +02:00
Sam Edwards 4695557a5d general: Don't require BUILDING_* for static builds 2018-08-31 23:54:32 -06:00
rdb fbce833aae pgui: reduce unnecessary locking in PGItem
A deadlock has been observed if the lock is held while traversing the scene graph, so the need for locking in cull_callback is now reduced.
2018-07-09 16:13:01 +02: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
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
Sebastian Hoffmann 78377ca10c Cursor after newline character appears on beginning of next line.
DirectEntry.updateNumLines updates text geom.
DirectEntry API less inadequate.

Closes #257
2018-03-30 20:17:31 +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
rdb d1c34c3360 interrogate: support static properties 2017-08-07 22:04:56 +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 af15797a25 Many, many performance optimizations and enhancements 2015-01-07 19:30:01 +01:00
David Rose 1a4f42706b remove a few epvectors 2011-12-19 18:16:30 +00:00
David Rose 42e8f806f1 leave lvecbase2/3 and lmatrix3 unaligned; it's so much cleaner 2011-12-19 14:17:26 +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 dfe16c64f6 rename all Panda-built libraries to begin with libp3 or libpanda 2011-12-06 02:39:21 +00:00
David Rose 807a6f61da Add patch from community member teedee to improve alternate coordinate-system support 2011-11-17 19:41:33 +00:00
David Rose 83b87652f8 fix prepare_scene() to prepare vertex buffers as well as textures 2011-11-05 17:58:28 +00:00
David Rose 501470169f stdfloat_double 2011-10-10 05:25:10 +00:00
David Rose 9d5325e05a replace gnu_getopt with new Panda-licensed implementation 2011-08-03 23:37:43 +00:00
David Rose 4785161374 squelch some more compiler warnings 2011-06-18 00:16:48 +00:00
David Rose 9b0ae43ad4 patch to apply texture in groove mode from Taldor 2010-12-10 22:21:34 +00:00
David Rose 358e83bb89 fix scrollbar buttons disappearing when resizing 2010-09-09 19:20:04 +00:00
David Rose 26332522da cursor color should follow text_fg color 2010-03-06 00:00:25 +00:00
David Rose fe763aff9a bugfix suggested by Erik Pojar 2010-01-05 15:40:17 +00:00
David Rose 165f739fc2 remove debug output 2009-12-15 07:04:00 +00:00
David Rose 42dea034e8 whoops, comment 2009-12-14 20:46:45 +00:00
David Rose 3bb37ce5ce further improvements 2009-12-14 20:46:18 +00:00
David Rose 5d8b61ca86 PGFrameStyle::T_texture_border 2009-12-13 07:20:23 +00:00
gogg 7418a00f76 Improved overflowable DirectEntry/PGentry caret-positioning's usability. 2009-11-30 23:41:04 +00:00
rdb 86aa00e1b9 Committed patch from Nz (forum user Gogg) to support text overflow in PGEntry 2009-10-29 12:20:29 +00:00
David Rose af847d758e protect under HAVE_AUDIO 2009-10-24 04:57:46 +00:00
David Rose 034a977c3d set frame size 2009-08-29 16:31:51 +00:00
David Rose 38d46bdebc minor fixes with published methods 2009-04-01 18:46:16 +00:00
David Rose ddbad77851 set_bounds_type() 2009-03-12 21:50:03 +00:00
John Loehrlein 5550aaa1d7 hooks for binding a "cursormove" event when the cursor moves 2009-01-23 01:51:48 +00:00
David Rose ef14dd5121 new ColorAttrib should have -1 override so it won't have precedence over scene graph attrib 2009-01-10 19:10:08 +00:00
David Rose e5cf8b1517 fix for wrong-color objects in directx 2009-01-08 03:15:12 +00:00
David Rose 26754b86ca merge dev_slots_2008: slot-based RenderState implementation 2008-11-19 01:21:44 +00:00
David Rose 58e0537e3c wide interrogate improvements: sequence protocol, MAKE_SEQ, __setitem__, and parameter coercion 2008-11-07 21:12:42 +00:00
rdb 1243548892 Back to 1.6 version 2008-10-27 21:13:56 +00:00
rdb addb68b630 1.20 + ordering issue fix, so I can tag this for 1.5.4 2008-10-27 21:12:22 +00:00
David Rose 6cd8951d9c fix PGEntry copy constructor 2008-10-27 19:29:54 +00:00
David Rose bfe8302665 fix ordering issue in PGButton 2008-10-27 18:48:23 +00:00
David Rose d4c2c9858d SIMPLE_THREADS_NO_MUTEX -> LightMutex 2008-10-08 23:23:40 +00:00