Sam Edwards
4695557a5d
general: Don't require BUILDING_* for static builds
2018-08-31 23:54:32 -06: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
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
8381118a97
Assorted tweaks and compile warning fixes
2016-07-14 12:54:39 +02:00
rdb
6728e5ecbe
Merge remote-tracking branch 'origin/release/1.9.x'
2016-06-23 16:14:18 +02:00
rdb
bf26cecb32
Fix some compile warnings
2016-06-22 13:44:16 +02: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
834cc57deb
More properties for classes
2015-12-16 21:41:55 +01:00
rdb
bdf91e206d
Remove references to Python.h and py_config.h from Panda headers, to prevent picking up a dependency on Python libraries in third-party modules
2015-11-28 16:33:44 +01:00
rdb
3c2f820ad8
Merge branch 'release/1.9.x'
...
Conflicts:
direct/src/p3d/DeploymentTools.py
2015-11-24 13:39:36 +01:00
rdb
4d2cf29816
Add libRocket to PandaSystem
2015-11-21 16:55:06 +01:00
rdb
db3ab953e4
Remove ppremake, genPyCode, and all hacks created to support them
2015-11-09 19:06:49 +01:00
rdb
920210c999
Fix the vast majority of Interrogate parse issues and warnings, add support for inline namespace and constexpr
2015-10-16 14:57:40 +02:00
rdb
7fa0d3c60a
Fix bug #1457688 : libRocket elements show solid white in tinydisplay
2015-08-20 18:58:13 +02:00
Ed Swartz
9fdc2d82d1
Send libRocket key events before mouse events
...
On Linux (at least), a key event is accompanied with a mouse position
event. If a libRocket UI is listening to e.g. "mouseover" events,
then any keypress will first appear to be a mouse movement, tripping
up code that tries to handle focus with both keyboard and mouse
support.
This change merely dispatches key events before any mouse events to
avoid this problem.
2015-08-13 11:02:51 -05:00
rdb
caf986fa2a
Fix uninitialized variable that would sometimes prevent mouse movement from being registered by libRocket
2015-08-10 02:48:53 +02:00
Ed Swartz
41498e3895
Fix a libRocket texture issue
2015-06-03 22:30:22 +02:00
rdb
f8ec2c10d5
libRocket now responds consistently to auto-texture-scaling, and supports (and prefers) padding over scaling
...
Thanks to Ed Swartz for helping to track down these issues!
2015-06-03 19:58:50 +02:00
Ed Swartz
32bfe0bafc
Add a few missing keys to libRocket keymap
...
libRocket calls some keys "OEM" which map to ASCII characters in
non-predictable places. Since Panda3D is providing these values
to libRocket from well-known sources, it seems a lesser evil to
use the default US English mappings rather than losing the events
entirely.
2015-05-30 22:16:15 -05:00
Ed Swartz
1fb49dc3f7
Fix Rocket asset lookup to use VFS correctly for .p3d
2015-05-07 22:37:16 +02:00
Ed Swartz
bb98d8a8a0
Use model-path as a fallback for rocket asset lookup
2015-05-07 09:40:12 -05:00
rdb
e608fa69c7
Merge branch 'master' into interrogate-overhaul
...
Conflicts:
dtool/src/cppparser/cppBison.yxx
dtool/src/interrogate/interfaceMakerPythonNative.cxx
2015-03-14 16:47:31 +01:00
rdb
d345246a93
Fix compilation with STDFLOAT_DOUBLE
2015-03-08 15:55:43 +01:00
rdb
4dc4c9eb3d
Merge branch 'master' into interrogate-overhaul
...
Conflicts:
dtool/src/interrogate/functionRemap.cxx
dtool/src/interrogate/interfaceMakerPythonNative.cxx
panda/src/event/pythonTask.cxx
panda/src/express/multifile.h
panda/src/express/pointerToArray.I
panda/src/mathutil/config_mathutil.N
panda/src/putil/config_util.N
panda/src/putil/doubleBitMask.h
2015-02-11 14:41:58 +01:00
rdb
bd86907181
Fix assortment of compilation issues and annoyances
2015-02-08 23:25:11 +01:00
rdb
b2f73d0877
Merge branch 'master' into interrogate-overhaul
2015-02-08 12:11:19 +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
rdb
6db5d0dc11
Huge cppparser and interrogate overhaul, bringing:
...
* Better support for typedefs
* Same code should compile for both 32-bit and 64-bit
* C++11 typed enum support
* Synthesize __setitem__ when operator [] returns reference
* Rewrite coerce system to have better performance
* Change semantics of __getattr__ and __setattr__ to match
Python's, add __getattribute__, __delattr__ and __delitem__
* Improve performance of slot functions a bit more
* Reduce memory overhead of type system
* Some support for wrapping arrays of numeric types
* C++11 character type support in cppparser
* Chars are handled as strings of length 1
* Template functions for CreatePyInstance that use runtime type map
* More functions from dtool as extension functions
* Code cleanup
2014-12-30 16:43:52 +01:00
rdb
95d85819b0
Separate out sampler state from texture, support sampler objects, support LOD min/max/bias
2014-12-12 15:58:45 +01:00
rdb
32ad6785f2
Missing HAVE_PYTHON
2014-03-18 08:24:52 +00:00
rdb
d899d8e6ed
update libRocket file interface
2013-10-23 16:45:27 +00:00
rdb
bf270fadc1
only load default font if it's the ttf one, not the bam one
2013-10-23 16:38:48 +00:00
rdb
829e79cf29
Load the default font (Perspective Sans) by default
2013-10-19 11:13:32 +00:00
rdb
0c83cc5530
crisp text in librocket (use nearest filtering instead of linear)
2013-10-19 08:44:59 +00:00
rdb
2ac66761b1
fix
2013-09-18 19:11:51 +00:00
rdb
c7784d2d93
fix
2013-09-18 18:25:04 +00:00
rdb
cc3bae7e76
Big interrogate cleanup, new extension system, add __iter__ support, add buffer protocol support
2013-09-17 10:11:43 +00:00
rdb
2d66cdc3ba
compile fixes
2013-08-25 17:12:00 +00:00
David Rose
9a93914d58
properly support a different coordinate system per camera (or lens)
2012-03-14 20:51:58 +00:00
rdb
d1e912e5e7
make multi-line textarea work
2012-03-04 21:23:41 +00:00
rdb
700c299844
hack to make decorators work
2012-02-29 12:51:36 +00:00
rdb
5f649a31c1
protect from interrogate
2012-02-21 15:56:23 +00:00
rdb
562296e694
add support for the libRocket debugger
2012-02-19 12:20:16 +00:00
rdb
6795dd86b1
show error message when rocket fails to open a file
2012-02-11 11:36:57 +00:00
rdb
eaa31cc65b
fix font colour issue (all text was showing up white regardless of font colour)
2012-02-01 11:10:17 +00:00
rdb
c04486cb14
this should fix an error on Windows
2012-02-01 11:03:21 +00:00
rdb
81513a83cd
"and" and "or" keywords aren't valid C++
2012-02-01 09:17:56 +00:00