Commit graph

3499 commits

Author SHA1 Message Date
Daniel Buckmaster
b27d9c19eb Merge pull request #1400 from Azaezel/SoSensitive
case sensitivity script fixes
2015-08-15 19:50:31 +10:00
Azaezel
826be7287a case sensitivity script fixes 2015-08-14 18:00:36 -05:00
Areloch
242d317a31 Adds a debug visualization mode for the active physics world.
Allows you to see the active collision info for the physics engine.
2015-08-13 23:38:59 -05:00
Areloch
c7dfe3c1f8 Merge pull request #1397 from Azaezel/SDL_OGL_OMG_BBQQ
From @LuisAntonRebollo -stops infinite loop on exit with SDL2+OGL on Win.
2015-08-13 23:06:20 -05:00
Duion
03e0874f9c Update messageBox.ed.cs
Must be "Canvas" instead of "0"
2015-08-13 23:39:15 +02:00
Azaezel
1df7e47a89 From @LuisAntonRebollo -Stymies infinite loop on exit with SDL2+opengl on windows. 2015-08-13 15:34:41 -05:00
Daniel Buckmaster
0172f22cb4 Merge pull request #1396 from Azaezel/reportRange
Adds data to vector out of bounds reports
2015-08-13 08:55:36 +10:00
Azaezel
7df625ea14 Adds data to vector out of bounds reports
Like say, if it's crashing out due to being passed a -1, or adding past the end.
2015-08-12 16:17:08 -05:00
Azaezel
4d3db61e94 credit to @MusicMonkey5555 for spotting. asserts for Div/NULLs with mutli-element classes
Also includes his magnitude and normalize safe alts
2015-08-12 03:41:49 -05:00
Azaezel
ac515a9ab1 release the mouse from window constraints when poping up a window prompt
like, say, assertfatal, to allow clicking in the popup.
2015-08-10 21:54:30 -05:00
Daniel Buckmaster
c9bf6b1ae5 Merge pull request #1385 from Azaezel/WarningWonkiness
-wall leads to incredibly long compile times
2015-08-11 09:37:14 +10:00
Areloch
9782490894 Merge pull request #1388 from Areloch/SDL_Scroll_Speed_Fix
SDL mouse wheel speed fix.
2015-08-10 08:44:15 -05:00
Daniel Buckmaster
c0e82d72a2 Merge pull request #1391 from Azaezel/C4706
warning C4706: assignment within conditional expression
2015-08-08 14:04:35 +10:00
Areloch
196bc67720 Merge pull request #1392 from Azaezel/C4005
warning C4005: 'WIN32' : macro redefinition
2015-08-07 23:03:07 -05:00
Areloch
5efc04dd47 Also apply scroll strength to horizontal scrolling. 2015-08-06 22:18:10 -05:00
Azaezel
c100d7f932 suggested revision 2015-08-06 21:56:46 -05:00
Azaezel
5bc926e97c warning C4005: 'WIN32' : macro redefinition 2015-08-06 21:01:20 -05:00
Azaezel
af38320300 warning C4706: assignment within conditional expression 2015-08-06 20:52:48 -05:00
Areloch
78e4a32ad7 Merge pull request #1387 from Areloch/SDL_MenuBar_Fixes
Fixes the menubar functionality when using SDL.
2015-08-06 18:32:11 -05:00
Areloch
7cb0bde6cd Merge pull request #1390 from Azaezel/GlowbugBashing
case sensitivity fix for linux
2015-08-06 18:31:48 -05:00
Areloch
68a2c9fa89 Added a default value just in case the pref is not defined. 2015-08-06 18:29:01 -05:00
Azaezel
2f33de3615 case sensitivity fixe for linux 2015-08-06 04:00:56 -05:00
Areloch
8248ecdeac Looks like WHEEL_DELTA is defined for win and osx, but not linux. Retooling to utilize a $pref instead, as that will let the scroll speed be modifiable for any projects that need it. 2015-08-05 17:44:55 -05:00
Areloch
3aba4a7259 SDL mouse wheel speed fix.
Default scroll speed wasn't delta-modified, so scroll gui controls were very slow when scrolled via mouse wheel.. This corrects the issue.
2015-08-04 23:01:59 -05:00
Areloch
b614d87e78 Fixes the menubar functionality when using SDL.
This resolves menu order, cleanup and close/re-open issues, as well as crashes on close.

It also modifies the look slightly to look closer to the windows menubar to keep a cohesive look regardless of platform.
2015-08-04 22:57:25 -05:00
Azaezel
6d121299ec -wall leads to incredibly long compile times (we're talking 5 minutes vs 80, here) 2015-08-03 17:09:53 -05:00
Hein-Pieter van Braam
eadd77272d Add @Azaezel's exception for Win32
"This chunk causes issues on the win8.1/non-SDL side."
2015-07-30 22:18:01 +02:00
Hein-Pieter van Braam
320718327f Actually generate a working string for glewGetExtension()
I don't know how to 'C' apparently.
2015-07-30 22:18:00 +02:00
Hein-Pieter van Braam
08622e9601 Use different extension detection mechanism
I got this from looking at the code from the glew utility 'glewinfo' on my system it reported the following for GL_ARB_geometry_shader4:  OK [MISSING]. This lead me to believe that there are two different ways of determining extensions. The first 'OK' seems to refer to the entrypoint existing while the second one seems to refer to the extension being available.

The difference is this:
The first OK comes from : GLEW_ARB_geometry_shader4 the global whereas the second 'MISSING' comes from glewGetExtension("GL_ARB_geometry_shader4"). By replacing the gglHasExtension I got the desired result.

We may want to implement some caching if we want to keep using GLEW perhaps?

Anyway I suggest this merely as a test, I'm not sure if this is a viable long-term solution.
2015-07-30 22:18:00 +02:00
Hein-Pieter van Braam
5d91cf90b3 Fix running on Linux / Intel Mesa drivers
* Explicitly request a GL 3.2 context
* Enable 'experimental' extensions on glew (This appears necessary to get glew to work with explictly set GL versions)
2015-07-30 22:18:00 +02:00
Areloch
63ae781d24 Merge pull request #1376 from Azaezel/TreeViewTerror
From Dušan Jocić: early out of treeview entries to prevent crashes
2015-07-30 10:56:41 -05:00
Areloch
2695a2aeae Merge pull request #1383 from Azaezel/MangledMouse
sdl2 mouse wheel scrolling
2015-07-30 09:24:38 -05:00
Areloch
23eecc3b59 Merge pull request #1382 from Azaezel/sdl2Win64FatalityFix
Fatality Fix: need to account for 64 bit windows as well.
2015-07-30 09:04:31 -05:00
Azaezel
4a8f6737b6 Mouse wheel check has to occur before mouse motion. Apparently the one is a subset of the other. also thanks @dottools for the proper codeline. 2015-07-29 20:36:33 -05:00
Azaezel
98d48b6011 Fatality Fix: need to account for 64 bit windows as well. 2015-07-29 11:50:47 -05:00
Azaezel
06f6819d63 sdl2 mouse wheel scrolling rev1 2015-07-29 11:24:48 -05:00
Areloch
a5b48225c7 Corrected the terrain issue caused by unwanted early-outing due to prior changes. 2015-07-29 10:14:19 -05:00
Azaezel
5615b642df suggested revision 2015-07-29 08:41:36 -05:00
Azaezel
3c1c88d96b TORQUE_VALIDATE_STACK define for console stack debugging 2015-07-29 04:46:36 -05:00
Azaezel
555610f69f Addresses roughly half of the C4189 errors though the following methodologies:
1) truly unused vars removed
2) vars leading to remmed out code for debugging remmed in turn.

left out:
vars in macros.
2015-07-29 03:03:27 -05:00
Azaezel
005c3c4b36 From Dušan Jocić: additional debugdraw entries. DirectionLine, OutlinedText, Capsule 2015-07-29 01:41:09 -05:00
Areloch
3a18819e1e Issue found by PVS Studio:
Several instances where we utilize a pointer variable without properly testing that they aren't null first.
2015-07-28 23:25:09 -05:00
Azaezel
a487583946 From Dušan Jocić: convexDecomp vs2015+ compatibility patch
(Verified with https://github.com/GarageGames/Torque3D/pull/1376 for sub vs2015)
2015-07-28 18:42:20 -05:00
Azaezel
2238dd66da From Dušan Jocić: early out of treeview entries to prevent crashes
"when you change some item or remove, it does not resize the array and in that way it create problem with value"
2015-07-28 18:35:11 -05:00
Areloch
859e653bd7 Redux of Winterleaf's PR 1001, with the suggested updated values. 2015-07-28 00:53:58 -05:00
Daniel Buckmaster
b24bdfbc8b Merge pull request #1374 from Azaezel/PSSMDebugRender
"AL: PSSM Cascade Viz" tool-button
2015-07-28 14:45:50 +10:00
Azaezel
ac39253b98 "AL: PSSM Cascade Viz" tool-button
Adds a debug toggle for the script-exposed global found c152ae86f3/Engine/source/lighting/advanced/advancedLightBinManager.cpp (L168)
2015-07-27 23:00:54 -05:00
Daniel Buckmaster
4721181d44 Merge pull request #1361 from Azaezel/BulletBreak1
adds minimum displacement check prior to convexSweepTest to avoid NaNs
2015-07-27 12:20:33 +10:00
Daniel Buckmaster
8615bbf007 Merge pull request #1373 from eightyeight/ribbon-builders
Ribbons in the editors
2015-07-26 20:21:52 +10:00
Daniel Buckmaster
0ed74bc8f5 Merge pull request #1362 from Azaezel/BulletBreak2
Removes fatal assertion on duplicated object collisions (meshroads, primarily)
2015-07-26 09:41:10 +10:00