Commit Graph

5370 Commits

Author SHA1 Message Date
David Rose 59403c4978 full win32 implementation of ConditionVarFull 2006-08-29 13:44:58 +00:00
David Rose 01a09a9d28 ConditionVarFull 2006-08-29 06:38:53 +00:00
aignacio_sf ce3ed75e1a Add a config option for the management of textures with DirectX management. 2006-08-29 00:47:25 +00:00
aignacio_sf 34c5a2fc6c Add a config option for the management of textures with DirectX management. 2006-08-29 00:18:46 +00:00
Josh Yelon 2dca55d07e Added support for SetProcessAffinityMask 2006-08-22 21:13:25 +00:00
Josh Yelon 5dc1385356 Small bugfix for size (0,0) windows 2006-08-22 16:14:58 +00:00
David Rose 1f1761da76 threaded model loads 2006-08-22 15:33:51 +00:00
David Rose 413b358ff1 whoops, typo 2006-08-19 23:13:17 +00:00
David Rose d300c4a10c allow embedded graphics in text paragraphs 2006-08-18 23:38:30 +00:00
David Rose 42fc71791e minor change: calc_tight_bounds should be a const method 2006-08-18 21:11:16 +00:00
David Rose e8329c6988 minor change to comment 2006-08-18 21:10:46 +00:00
David Rose a55b7e0950 fix relative problem with transform on traverser root 2006-08-16 20:22:57 +00:00
David Rose 50a7a80ce2 remove event, util from dependencies 2006-08-16 17:25:42 +00:00
David Rose 13632f9083 fix dependencies 2006-08-16 17:22:59 +00:00
Josh Yelon eb2aa16c66 A few more fixes to the heightfield tesselator 2006-08-08 17:39:51 +00:00
David Rose 90a5037fcf don't suggest sphrt 2006-08-04 21:34:38 +00:00
David Rose 36d9d7148c int -> long 2006-08-04 15:04:05 +00:00
David Rose 26b1e8f6cd run-time validate endianness, numeric sizes 2006-08-04 14:43:31 +00:00
David Rose 1ea11e7073 don't insist on loading alpha version of related texture 2006-08-03 13:52:35 +00:00
David Rose 2ed9484f06 fix typos in comments, fix show-transparency with M_dual 2006-07-31 21:05:10 +00:00
David Rose ca70808c25 prevent crash at static init 2006-07-31 20:23:12 +00:00
Josh Yelon 87c7e59646 Reversed Y-coordinate, to reflect usual orientation of images 2006-07-31 16:24:44 +00:00
David Rose 7834728560 add support for txaFileFilter 2006-07-28 20:37:14 +00:00
David Rose df10d43e2f add heightfieldTesselator to Sources.pp 2006-07-27 20:56:55 +00:00
Josh Yelon ba0a2427bf Working, except that image upside-down 2006-07-27 20:13:51 +00:00
David Rose d202b5e0e2 allow particle systems to be placed under an instance 2006-07-27 00:24:34 +00:00
David Rose 703e4512b3 fix assertion failure with threading 2006-07-27 00:24:13 +00:00
David Rose 35f3829d10 fix assertion failure 2006-07-27 00:00:36 +00:00
David Rose 8e178ae9d6 obviate the need to call Actor.update() most of the time 2006-07-26 21:40:53 +00:00
Josh Wilson 6208912868 updated comments 2006-07-25 01:40:46 +00:00
Josh Wilson eef56b66b4 added ability for particle system to perform a 'soft stop' where the birthing is effectively stopped while the rest of the system runs down 2006-07-25 01:39:24 +00:00
Josh Wilson bdfdeb5f2c updated comments 2006-07-25 01:33:35 +00:00
David Rose c06828c193 one more windowed/fullscreen fix 2006-07-20 21:37:54 +00:00
David Rose d0cf3615bc more fixes to fullscreen/windowed switch 2006-07-20 19:46:24 +00:00
David Rose 76ff8ab6fd fix for reopening windows 2006-07-20 18:47:58 +00:00
David Rose 5a7cbf621a read/load should implicitly clear 2006-07-20 16:57:42 +00:00
Josh Wilson 2425624c9d we can now perform an update on a single particle system 2006-07-20 14:52:39 +00:00
David Rose 49b673a886 implicitly reload if necessary on store() 2006-07-19 22:52:44 +00:00
David Rose 061e9c78f1 automatically elevate geom indices to 32 bit if necessary 2006-07-17 22:16:05 +00:00
David Rose b600ff2aa5 fix comment 2006-07-17 17:12:33 +00:00
aignacio_sf 626136548f Fix ALT-TAB problem by saving each graphics buffer into the gsg and releasing the previously non-managed surfaces. 2006-07-15 01:00:35 +00:00
David Rose 3c249e55f6 straighten out some issues with audio, seeking; fix formatting issues 2006-07-14 23:24:38 +00:00
David Rose dc6b1cbe79 fix sticky rollover buttons 2006-07-14 21:06:26 +00:00
David Rose ab3fe7e180 fix deadlock issues 2006-07-14 16:16:33 +00:00
David Rose 39f37d0567 fix particles 2006-07-13 17:34:10 +00:00
David Rose 233f3e080d egg-max-vertices, egg-max-indices, max-collect-indices 2006-07-13 16:09:08 +00:00
Josh Wilson 77b18a7c73 we can now choose a particular Physical upon which to run physics processing instead of having to run through the entire scene 2006-07-13 00:24:48 +00:00
Josh Wilson f195f3635d added get_objects() to get a collection of all the particles as PhysicalObjects 2006-07-13 00:23:04 +00:00
Josh Wilson 2814e85f51 added physicsObjectCollection 2006-07-13 00:16:49 +00:00
Josh Wilson 45db1dad81 removing 2006-07-13 00:15:45 +00:00
Josh Wilson f66c7f8ab9 initial checkin 2006-07-13 00:13:44 +00:00
aignacio_sf 9bcd40db9b Fix rendering of cube map faces. 2006-07-12 02:12:37 +00:00
aignacio_sf 5d709e329a Fix fullscreen with stencil. Problem was caused by attempted optimization by using a 16-bit depth buffer. 2006-07-12 01:59:33 +00:00
aignacio_sf ea51b11218 Fix fullscreen with stencil. Problem was caused by attempted optimization by using a 16-bit depth buffer. 2006-07-12 01:49:36 +00:00
aignacio_sf 078e215639 Fix rendering to cube map faces. 2006-07-12 01:47:50 +00:00
aignacio_sf 942d002c46 Add new dx config options. 2006-07-10 18:33:04 +00:00
David Rose 7d2c004a91 oops, incorrect include statement 2006-06-29 19:56:31 +00:00
Roger Hughston f3e71f30a5 Quick Fix 2006-06-27 02:09:08 +00:00
David Rose 51911fd6eb fix wraparound 32-bit cache size; robustly handle negative cache size 2006-06-26 18:53:43 +00:00
David Rose 8a6a7ee3e2 oops, legal not to have a cache dir 2006-06-20 22:13:24 +00:00
David Rose 319aa260e0 add model-cache-max-kbytes 2006-06-20 19:49:20 +00:00
David Rose 7d43e51358 add BamCacheIndex 2006-06-20 00:23:24 +00:00
aignacio_sf 73b5c5ce6f Add a version check for 1502 and use the latest profile for now. 2006-06-19 17:53:35 +00:00
David Rose bcb66a94d7 fix some issues with video textures 2006-06-19 13:29:18 +00:00
aignacio_sf 5a44148f12 Add debug code to print out shader asm code in debug mode.
Check for errors when the Cg generated shader code is loaded.
2006-06-16 23:06:39 +00:00
aignacio_sf e32b6c08c4 Add debug code to print out shader asm code in debug mode.
Check for errors when the Cg generated shader code is loaded.
2006-06-16 22:58:35 +00:00
aignacio_sf facb0ed528 Add auto-detection and debug code for shader models. 2006-06-16 22:33:58 +00:00
aignacio_sf f15e24ed3e Add interface and abstract representation for shader models. 2006-06-16 22:31:36 +00:00
David Rose bd4d95f48b fix some issues with model-cache-dir 2006-06-16 17:36:28 +00:00
David Rose 2e7630b8f9 X needs PWT_draw, too. 2006-06-16 14:02:46 +00:00
David Rose c2f92bb29d glx wants to run windows in app thread 2006-06-15 23:41:05 +00:00
David Rose b053967464 fix threading on windows 2006-06-15 23:39:00 +00:00
David Rose 1940682af9 pass WindowProperties to GraphicsEngine::open_buffer and to related constructors 2006-06-15 14:02:40 +00:00
David Rose 0f20f625f3 prevent self-deadlock 2006-06-15 13:02:55 +00:00
David Rose 89f6b97a07 fix build break 2006-06-15 01:54:11 +00:00
David Rose 7719dd539e fix texture issues; introduce model-cache-dir 2006-06-15 00:22:35 +00:00
David Rose 0b93deaa03 alpha-file implies we want alpha 2006-06-15 00:17:20 +00:00
Josh Wilson b79e647bd1 added is_modulated status to segment constructor and addSegment functions 2006-06-14 18:36:18 +00:00
David Rose 158bfa9759 correct mistaken documentation 2006-06-14 16:36:31 +00:00
David Rose ea15821afe more fixes for mesadisplay 2006-06-09 22:56:16 +00:00
David Rose bebd388711 NullAudioManager/Sound should have a TypeHandle 2006-06-09 20:42:03 +00:00
aignacio_sf 2b6df64ac1 Add debug print out of latest Cg vertex and pixel shader profile at gsg reset time. 2006-06-09 19:19:20 +00:00
David Rose f26a291ad5 correct old usage 2006-06-09 17:57:40 +00:00
Josh Yelon 55e11a329a Fixed null pointer thingy 2006-06-09 17:41:09 +00:00
David Rose b0eb06c4cb add get_file_size() for an unopened file 2006-06-09 17:28:18 +00:00
David Rose 9cc19ba6af minor fix to Actor.flush() with controlJoints 2006-06-08 23:01:59 +00:00
David Rose 87a912818b add file timestamps 2006-06-08 22:33:08 +00:00
Josh Yelon cb8e25f859 A few more fixes 2006-06-08 21:19:37 +00:00
Josh Yelon d63920086a Removed unneeded weird routine 2006-06-08 21:19:21 +00:00
Josh Yelon 40db93b374 Repairs to DX buffers 2006-06-08 17:52:57 +00:00
David Rose c7a4859e3c read color_bits, etc. from config file 2006-06-08 17:25:06 +00:00
David Rose 0eb64d79f0 OSMesa should set fb_props 2006-06-08 17:24:51 +00:00
Josh Yelon 25cd86b34f Removed spurious set_inverted 2006-06-08 15:09:35 +00:00
Josh Yelon 4a62c9c107 Fixed missing fbp control vars 2006-06-08 15:06:39 +00:00
David Rose bf6bb54c31 copy BitArray by reference 2006-06-08 00:21:08 +00:00
David Rose a2df279a61 add ClockObject::M_limited 2006-06-07 23:26:36 +00:00
Josh Yelon c1f03b3650 Fixed a few more gsg==NULL bugs 2006-06-07 21:16:37 +00:00
Josh Yelon 2408212aac Fixed framework 2006-06-07 20:15:38 +00:00
Josh Yelon e8f749cf1e Buffer/Window creation overhaul 2006-06-07 17:38:32 +00:00
David Rose abb862c7f0 default parameter for sync_frame_time() 2006-06-07 17:15:54 +00:00
Josh Yelon 1486c02a10 Added composite. 2006-06-07 15:54:27 +00:00
aignacio_sf 5000348067 Use the GSG set_sampler_state function instead of the DX9 function directly. 2006-06-03 03:12:41 +00:00
aignacio_sf 3bd176fd7c Need to always set the render state since caching the render state doesn't seem to work (possibly due to Cg shader setting D3D render states).
Fixes problem with sails and ship damage.
2006-06-03 03:11:19 +00:00
Dustin Barnard 1a20ccab5c *** empty log message *** 2006-06-02 21:25:57 +00:00
aignacio_sf c9c25a867d Disable stencil requests for make_texture_buffer for now. 2006-06-02 00:18:17 +00:00
Roger Hughston b03a063028 MAC Mouse visibility and procedural location control. ala kaweh 2006-05-31 20:50:56 +00:00
David Rose 4874f2cd01 clarify intention of assignment 2006-05-31 16:51:48 +00:00
aignacio_sf 0d8e519699 Remove releasing of d3d texture since Panda already manages releasing of textures. 2006-05-31 01:37:23 +00:00
aignacio_sf 64ac1f8510 Updated stencil interface. 2006-05-27 00:52:09 +00:00
Roger Hughston 1afccc2d19 Added Repeate Codes for key ( Just spoofing key down like a PC ) :( 2006-05-26 20:01:09 +00:00
aignacio_sf 2557c64393 Eliminate possibility of a free twice error if close buffer is called multiple times. 2006-05-24 19:04:13 +00:00
aignacio_sf c905d712ab Attempting to optimize the setting of stencil render states doesn't seem to work.
Switch back to the unoptimized way.
2006-05-24 02:45:53 +00:00
David Rose fcaba44369 misplaced brace 2006-05-24 00:23:48 +00:00
aignacio_sf d57e768594 Initial working stencil. 2006-05-24 00:13:04 +00:00
aignacio_sf 1a8e40cb46 Remove call to base destructor. 2006-05-23 23:49:44 +00:00
aignacio_sf 8b4638b38c Initial working version of stencil buffer. 2006-05-23 23:41:49 +00:00
aignacio_sf 3760491ac6 Add stencil support. 2006-05-23 23:41:08 +00:00
aignacio_sf 20d6d877e1 Add comments, debug. 2006-05-23 23:38:22 +00:00
David Rose 91b341dafb fix multithreading issues with X 2006-05-23 14:16:38 +00:00
David Rose 6c3ac71c05 need BF_size_square for cube maps 2006-05-23 12:52:01 +00:00
David Rose 556d564c5a make_cube_map() default uses PandaNode::get_all_camera_mask() 2006-05-23 12:51:07 +00:00
David Rose d6b1da618c add get_all_camera_mask() 2006-05-23 12:48:25 +00:00
David Rose f3691cf520 files missing from Sources.pp 2006-05-22 23:52:40 +00:00
David Rose 6ee39ae6e9 accidentally removed miles variables 2006-05-22 22:08:32 +00:00
David Rose ed1fd25236 explicit calls to init_type() 2006-05-22 18:32:22 +00:00
David Rose 611d3b04b0 remove debug output 2006-05-22 18:31:42 +00:00
David Rose 5927760011 remove incorrect call up to base destructor method 2006-05-21 01:40:20 +00:00
aignacio_sf 682065a3e8 Preliminary stencil buffer code. 2006-05-19 04:18:09 +00:00
aignacio_sf 1a8b8f1756 Correct comment. 2006-05-19 01:14:16 +00:00
aignacio_sf 0924c50cd1 Add support for desination alpha for the back buffer. 2006-05-18 18:44:12 +00:00
David Rose eb0757e5f7 fix hard crash with too many solids per from collisionnode 2006-05-18 13:47:53 +00:00
David Rose 6a007533fd fix tabs, prevent crash on startup 2006-05-17 18:47:45 +00:00
aignacio_sf 52d3b65cc4 Fix RTT clear color buffer problem. Use color instead of back. 2006-05-15 23:02:13 +00:00
Josh Yelon d9affd78e0 Maybe this will fix the miles problems 2006-05-15 19:12:52 +00:00
Josh Yelon 947d21e598 Changed a function name 2006-05-15 18:06:13 +00:00
David Rose 0a93b10ff7 add missing include 2006-05-15 17:38:10 +00:00
David Rose 4b8d78f3c3 files have been moved to express 2006-05-15 17:34:29 +00:00
Josh Yelon be22aa9d15 *** empty log message *** 2006-05-15 15:29:22 +00:00
Zachary Pavlov cb65e0c44e all right, almost all parts of ffmpeg should be hooked in 2006-05-14 22:35:54 +00:00
Zachary Pavlov 366f48314e okay, the only current video textures now supported are avi and mov, but they are both running through ffmpeg 2006-05-14 22:32:07 +00:00
Zachary Pavlov b8a0f48bae All right, here's the basic code necessary to run ffmpeg textures 2006-05-14 18:42:04 +00:00
Roger Hughston 8aad8db278 a tempary hack to make interigate less of a pig 2006-05-12 23:41:51 +00:00
Dave Schuyler 247e79ccce work in progress 2006-05-12 23:13:15 +00:00
Dave Schuyler b5678306f4 formatting 2006-05-12 23:12:46 +00:00
David Rose ae9d5a6f77 fix LinkedListNode assertion on exit 2006-05-12 21:24:42 +00:00
David Rose cbd873fc23 fix red-blue-stereo 2006-05-12 20:38:18 +00:00
David Rose 1f320c8196 add set_render_mode_thickness(), set_render_mode_perspective() 2006-05-12 20:37:21 +00:00
David Rose 92192adc31 fix Texture::reload() 2006-05-12 18:24:03 +00:00
David Rose a0a897772b fix PStats dr_index number 2006-05-12 18:21:38 +00:00
David Rose c8991502bf fix camera.set_active() 2006-05-12 18:21:19 +00:00
David Rose 9b202f59d7 prevent assertion without point_sprite extension 2006-05-12 18:09:47 +00:00
David Rose 74f7494e05 add PStatFrameData::sort_time() 2006-05-12 18:08:31 +00:00
David Rose 66d179ecdf fix fog on sprite particles 2006-05-12 18:06:22 +00:00
Dave Schuyler 42b6f9ed25 work in progress 2006-05-12 02:45:41 +00:00
David Rose 05ff700750 fc5 issues 2006-05-05 18:38:35 +00:00
David Rose 686bff860f fix memory leak when rendering certain particle effects 2006-05-03 05:31:37 +00:00
Dave Schuyler 1aab3341c9 ds_solid 2006-05-03 00:58:13 +00:00
Dave Schuyler 01b2452fc8 test_intersection_from_ds_solid 2006-05-03 00:57:53 +00:00
Dave Schuyler e04a10b42e added test_intersection 2006-05-03 00:57:09 +00:00
Dave Schuyler 162d7a5808 removed color; added test_intersection 2006-05-03 00:56:32 +00:00
David Rose 33d94245bd threading fixes 2006-05-02 15:44:48 +00:00
David Rose ea52930b83 clear _cdata pointer 2006-05-02 14:41:12 +00:00
David Rose 1390d9ff22 minor thread-safe fix 2006-05-02 05:59:15 +00:00
David Rose de329ceb0d revert unintended checkin 2006-05-02 01:48:47 +00:00
David Rose 7dc0eabbbb fix compilation errors without threading 2006-05-02 01:47:59 +00:00
David Rose 7716080a27 fix compilation error 2006-05-02 01:30:16 +00:00
David Rose c8eb6c5a82 reduced need for read locks 2006-05-02 00:48:10 +00:00
David Rose 4559b15c18 more minor speed improvements 2006-04-30 22:10:49 +00:00
David Rose 1411ac870b fix unnecessary thread creates 2006-04-30 21:05:54 +00:00
David Rose f1038ea8ef unify PandaNode::CData again; create PandaNodePipelineReader 2006-04-30 20:24:36 +00:00
David Rose f410cff0cd separate out CacheKey and CacheEntry 2006-04-30 20:24:14 +00:00
David Rose b407c2929b better thread safety 2006-04-30 14:42:54 +00:00
David Rose d5dcdc63ab fix M_dual 2006-04-29 02:17:51 +00:00
David Rose 1ee0741221 fix MouseWatcherRegion update and show_regions 2006-04-29 02:00:15 +00:00
Dave Schuyler 8ef8e73472 *** empty log message *** 2006-04-29 00:20:47 +00:00
Dave Schuyler e58415ae5c formatting 2006-04-29 00:19:52 +00:00
David Rose 0c267327e4 fix base.mouseWatcherNode.showRegions() 2006-04-28 23:25:06 +00:00
David Rose fe6105ea26 forgot to increment index 2006-04-28 17:12:12 +00:00
David Rose fade04905d more mutex protection; more current_thread passing 2006-04-28 16:17:55 +00:00
David Rose 14690717a2 allow changes 2006-04-28 00:50:53 +00:00
David Rose c08358b05d more fixes to texture reloading 2006-04-28 00:39:06 +00:00
David Rose 4a369a0536 per-displayregion tracking of cull, draw times 2006-04-28 00:05:43 +00:00
David Rose d23f90f9cd deadlock defense 2006-04-28 00:05:13 +00:00
David Rose e979522311 fix seapatch 2006-04-27 16:21:56 +00:00
David Rose 618029ad6e current_thread on GeomVertexRewriter 2006-04-27 15:36:45 +00:00
David Rose 0c30cbbe7b fix shground & dupe-floor 2006-04-27 14:50:47 +00:00
David Rose 9808294212 factor out more calls to Thread::get_current_thread() 2006-04-27 14:45:39 +00:00
Chris Brunner e199bddbe3 Mac support 2006-04-27 01:33:20 +00:00
David Rose 6415041d86 fix reset_all_prev_transform 2006-04-26 21:50:42 +00:00
David Rose c9e1bd24e2 fix opt4 build 2006-04-26 20:51:43 +00:00
Josh Yelon ac32dd5d14 Fixes related to framebufferproperties.has_mode 2006-04-26 16:39:46 +00:00
David Rose b7d6f18a1c default parameters for Python 2006-04-26 16:26:26 +00:00
David Rose 4146b852de copy construct current_thread 2006-04-26 16:00:45 +00:00
David Rose 0da0ced5be ref thread objects 2006-04-26 15:28:26 +00:00
David Rose ce40d329d3 add current_thread to begin_frame/end_frame (untested) 2006-04-26 14:34:03 +00:00
David Rose 2b155307cd fix stupid compilation errors 2006-04-26 13:34:18 +00:00
David Rose ca31ec231c GeomVertexWriter now has a default constructor 2006-04-26 13:33:35 +00:00
David Rose ddd1046462 factor out Thread::get_current_thread() some more 2006-04-26 07:31:23 +00:00
David Rose 95d10754c0 faster Tau on Linux 2006-04-25 19:26:08 +00:00
David Rose 7f49d41284 fix opt4 crash 2006-04-25 17:28:55 +00:00