Commit Graph

228 Commits

Author SHA1 Message Date
rdb 475bd55bb1 glgsg: add gl-forward-compatible config variable
This is meant to be used alongside gl-version to request a "forward compatible" OpenGL 3.0 or 3.1 context, which removes support for deprecated features such as the fixed-function pipeline.
2019-05-03 15:46:01 +02:00
rdb da079c5ffe glxdisplay: remove lock in dtor, which causes crash on shutdown 2018-11-27 17:10:40 +01:00
rdb 0a1b6df648 glxdisplay: grab X11 lock around various GLX calls 2018-11-22 23:14:29 +01:00
rdb c18cdcf36e display: add support for debug markers, to help with debugging
This is useful when running Panda in a tool like apitrace, so that the different calls in a frame are ordered in a neat hierarchy.
2018-11-20 12:41:20 +01:00
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 a971bc1dfc general: Break apart BUILDING_PANDAGL 2018-06-12 16:15:45 -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
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 ab5b5e7e74 Merge branch 'release/1.9.x' 2016-12-25 22:47:22 +01:00
rdb 92302942fe Changes to build on ancient Linux distributions (CentOS 5 / manylinux) 2016-12-21 17:40:49 +01:00
rdb 8381118a97 Assorted tweaks and compile warning fixes 2016-07-14 12:54:39 +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 555844f82a Allow compiling out the fixed-function pipeline and request core context 2015-07-09 16:43:45 +02:00
rdb b06100afdd Changes to support building universal Mac rtdist for 1.9 2015-03-28 00:31:10 +01:00
rdb 36525784fd Robustify GL FBO framebuffer properties handling 2015-03-09 15:27:38 +01:00
rdb bc24576b02 Split up color-bits into red-bits + green-bits + blue-bits 2014-12-06 16:10:01 +01:00
rdb b24adbcad1 Fix issues resizing OpenGL FBOs. Use LVecBase2i for storing buffer size. 2014-09-16 14:51:13 +00:00
rdb 128f82863e Support OpenGL debugging features (see gl-debug).
Also fixed the GLX code not to call reset() on the temp context but on the real context instead.
2014-06-20 13:17:01 +00:00
rdb 601922e49e sRGB texture support, add floating-point flags to FrameBufferProperties 2014-06-19 19:32:03 +00:00
rdb 6454ddddc5 Eliminate GLP() macro (so we can write glEnable instead of GLP(Enable) again). 2014-06-18 21:06:05 +00:00
rdb 5a88e20894 Allow creating a buffer under a callback GSG 2014-06-18 21:02:28 +00:00
rdb ea22e87f79 remove GLX_EXT_import_context section entirely as we're not using it, and it uses GLXContextID which seems to give trouble related to conflicting definitions. 2013-12-23 22:08:33 +00:00
rdb 055919f936 whoops 2013-08-29 17:05:29 +00:00
rdb 2274f2e651 FBO overhaul: support layered framebuffers (RTM_bind_layered), support render-to-2d-array, better respect FrameBufferProperties, more simple handling of RTP_depth_stencil 2013-08-13 12:44:27 +00:00
rdb 400f22693a don't crash when X11 display is missing 2013-03-10 14:09:12 +00:00
Andrew Wason 9e6cc04792 commit another rectalogic patch, to fix pbuffers on GLX 2012-04-25 18:20:13 +00:00
David Rose bb8867fb77 move GSG::get_supports_render_texture() into GraphicsOutput to support render-to-texture on non-Windows platform. Also, further fixes to FBO render-to-texture. 2012-02-11 21:09:35 +00:00
David Rose d743dc8a55 The buffer flip should be performed in end_flip(), not in begin_flip(). This long-existing mistake caused double-flips with parasite buffers in effect. 2012-02-10 18:21:55 +00:00
David Rose 6c34e0fb6c fix makepanda built; ppremake build should use composites too 2012-01-15 15:43:06 +00:00
David Rose 1fd8a621ff further robustness for WxPandaWindow on Linux 2012-01-14 19:20:56 +00:00
David Rose ce8af6bc29 CallbackGraphicsWindow on Linux, but there are issues 2012-01-10 01:09:48 +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 e91fb0d53e better implementation of set_one_shot() 2011-10-04 18:05:08 +00:00
David Rose bee4cb326a pipeline GraphicsOutput::set_active() to better support offscreen rendering in threaded mode 2011-10-03 20:23:17 +00:00
David Rose dcc4a33ae9 protect x11 namespace better; support building with x11 support on osx too 2011-08-28 23:31:28 +00:00
rdb db5e5c6c5d fallback to XVisual interface if there are no FBConfig contexts (untested) 2011-04-15 07:09:00 +00:00
rdb e53e831142 fix crash on glx implementations that don't support FBConfig 2011-04-13 15:16:17 +00:00
rdb 1feec43b43 Oops, the fix was only for EGL 2011-01-26 14:41:47 +00:00
rdb bdf4591c3a Fix minor issue that has been limiting the number of framebuffer configurations to 32, severely limiting render functionality across the board. 2011-01-26 14:13:02 +00:00
rdb 35e4335e53 heh, fixed bug in glx_is_at_least_version. 2.0 > 1.1 2010-12-20 12:12:18 +00:00
David Rose f42788880f add explicit glx prototypes 2010-07-15 18:15:42 +00:00
David Rose 4b15eab071 output fbprops too 2010-06-18 01:00:48 +00:00
rdb d92008a76d Protect against crash 2010-05-07 14:36:18 +00:00
David Rose 2475878a70 temp_context 2010-05-04 19:34:32 +00:00
rdb a9062aa25f Fix weird bugs regarding indexed_color on Unix/GLX 2010-03-15 10:49:42 +00:00
David Rose b89595c845 further fixes to two-step context creation 2010-03-13 18:28:52 +00:00
David Rose 4fd129413a more robust handling of glx version and extension functions w.r.t. pbuffers and pixmaps 2010-03-08 20:58:06 +00:00