Commit graph

2430 commits

Author SHA1 Message Date
rextimmy 395c7af5b6 Corrects a problem with the D3D11 texture lock/unlock mechanism 2018-04-21 18:19:17 +10:00
Lukas Joergensen 951ca817bb Add a method to set the 'MainDotCsDir' when no main.cs is available 2018-04-21 09:29:57 +02:00
Lukas Joergensen 6b7be51d61 Pass structs by value, not by reference, in EngineAPI. This simplifies call-layout through EngineAPI 2018-04-21 09:23:38 +02:00
Lukas Joergensen 7d2587ad2b Use FixedTuple in EngineTrampoline, to make memory-layout consistent 2018-04-21 09:22:12 +02:00
Lukas Joergensen 43d2824f49 Mark EngineAPI as initialized, otherwise it can't be used 2018-04-21 09:21:21 +02:00
Lukas Joergensen 5bbda83669 Add Type information for Properties in EngineXMLExport 2018-04-21 09:08:44 +02:00
Lukas Joergensen a84145421f Fix EngineAPI xml generation, utilizing fixed_tuple for default args 2018-04-21 09:08:38 +02:00
Lukas Joergensen c1e64ff3bd Add initPersistFields to mPropertyTable 2018-04-21 09:03:04 +02:00
Lukas Joergensen bc435a3b33 Eliminate ConsoleFunction and ConsoleMethod, replace with DefineEngineStringlyVariadic 2018-04-20 22:09:58 +02:00
Lukas Joergensen 323206a796 Eliminate ConsoleStaticMethod 2018-04-20 20:27:09 +02:00
Lukas Joergensen 2e6133af48 Eliminate unnecessary uses of ConsoleMethod 2018-04-17 22:36:32 +02:00
Lukas Joergensen 00758d380f Eliminate unnecessary uses of ConsoleFunction 2018-04-17 21:41:29 +02:00
Lukas Joergensen cdfd4f9735 Eliminate DefineConsoleStaticMethod 2018-04-17 21:03:16 +02:00
Lukas Joergensen 3c99ef73a9 Eliminate DefineConsoleMethod 2018-04-17 21:01:50 +02:00
Lukas Joergensen 5bde18143f Eliminate DefineConsoleFunction 2018-04-17 20:54:08 +02:00
Areloch 037d089c4d
Merge pull request #2146 from Azaezel/specializationShenanigans
changes find, swap, for_each, and delete_pointer from global to t3d namespace
2018-04-17 03:02:03 -05:00
Jeff Hutchinson babe32ae7b Added better script interpreter logging. 2018-04-14 10:59:09 -04:00
Jeff Hutchinson 188fba2049 fix this pointer in op_callfunc_this 2018-04-12 23:14:57 -04:00
Jeff Hutchinson 47b1990cb7 Check for NULL on the thisObject before using it. Also cleanup break to goto. 2018-04-10 22:21:40 -04:00
Jeff Hutchinson 050d710580 Remove unused variables and cleanup precision warnings as dSprintf takes a U32 for the size of the buffer to use. 2018-04-02 23:38:17 -04:00
Azaezel f6b7d3711d slimmed down shadowvar cleanups, plus removal of an unused membervar. 2018-04-02 03:06:58 -05:00
Azaezel c84bd23e17 Revert "collada/ts chain shadowvar and member var clenaups"
This reverts commit 3ce15b33eb.
2018-04-02 03:01:52 -05:00
Azaezel 43c3f75b14 further membervar issue with PolyhedronFixedVectorData template found with clang. 2018-04-01 17:48:10 -05:00
Azaezel d2e8536a29 afx effect-vector and phrase membervar cleanups 2018-03-30 02:54:48 -05:00
Azaezel b0c48bbfce afx footswitch membervar cleanups 2018-03-30 02:53:07 -05:00
Azaezel 6daf4753ad afx point and spot light membervar cleanups 2018-03-30 02:52:22 -05:00
Azaezel e1c30fea37 afx camera membervar cleanups 2018-03-30 02:51:44 -05:00
Azaezel 47fc9325d1 a pair of afx audio-class membervar cleanups 2018-03-30 02:51:17 -05:00
Azaezel 74047fb34f afx mooring membervar cleanups 2018-03-30 02:50:12 -05:00
Azaezel dbdcbb034a afx staticshape membervar cleanups 2018-03-30 02:49:35 -05:00
Glenn Smith 50ac969b48 CodeBlock::getFunctionArgs used the wrong offsets 2018-03-30 02:28:04 -04:00
Glenn Smith 7a61a3cd95 Badly sized buffer in dumpConsoleClasses 2018-03-30 02:27:43 -04:00
Azaezel 6876801e61 afxforceset membervar cleanups 2018-03-29 19:40:34 -05:00
Azaezel 29530f0eaf afxEffectWrapper membervar cleanup 2018-03-29 17:46:57 -05:00
Azaezel 3ae1f7e73a afx magic spell membervar cleanup (plus an additional shadowvar one in magic missile) 2018-03-29 03:41:34 -05:00
Azaezel 1164ffb590 afx path 3d membervar cleanup 2018-03-29 03:40:24 -05:00
Areloch 7369b9feae Remove a now-unneeded fix for offsetof on new versions of Visual Studio. 2018-03-29 00:44:10 -05:00
Azaezel 7064b41506 gamebase mmebervar cleanups. mPacked in particular is likely to geta followup for other cleaning. 2018-03-28 23:41:47 -05:00
Azaezel 317cd9151a more afx constraint mmebervar cleanups 2018-03-28 23:37:19 -05:00
Areloch 6d37709b51
Merge pull request #2225 from Azaezel/defineDistaste
stop linux/mac  undefined MSVC versioncheck spam.
2018-03-28 21:38:40 -05:00
Glenn Smith ff9892c11e Use a circular buffer for getReturnBuffer because StringStack's would get clobbered too quickly 2018-03-28 20:55:09 -04:00
Glenn Smith 3650e9afa9 Move StringStack methods into the cpp file 2018-03-28 20:52:10 -04:00
Azaezel 0b70c7d529 afx constraint membervar cleanups 2018-03-28 18:39:59 -05:00
Azaezel 1e11b6e018 afx wave scalar and color membervar cleanups 2018-03-28 17:54:49 -05:00
Azaezel 47c62677ac void ColladaUtils::ExportData::processData() var clarifications 2018-03-28 17:50:17 -05:00
Azaezel 28e509af1a Merge branch 'development' of https://github.com/GarageGames/Torque3D into memberMess
# Conflicts:
#	Engine/source/console/consoleFunctions.cpp
2018-03-28 15:42:34 -05:00
Azaezel 0444410486 retooled spherical force ammount display to be based on mAppliedForce 2018-03-27 20:25:46 -05:00
Azaezel 80e34d88a0 visualization augmentations for PhysicalZone. colorizes based on force vector, scales based on lengths 2018-03-27 14:58:40 -05:00
Azaezel 3cec0f9d98 augmentation to drawArrow to allow one to explicitly define a radius. 2018-03-27 14:57:23 -05:00
Azaezel ceac050d7b stop linux/mac undefined MSVC versioncheck spam. 2018-03-19 16:18:57 -05:00
Azaezel 405c8ccfd1 stop linux/mac undefined MSVC versioncheck spam. 2018-03-18 18:51:10 -05:00
Areloch ffe9405568 Adds a convenience function to refresh the console dialog. 2018-03-17 14:37:07 -05:00
Areloch b9a21be1e2 Merge branch 'optimusPrimitive' of https://github.com/Azaezel/Torque3D into development 2018-03-17 00:45:54 -05:00
Areloch 81f9f1bdbd
Merge pull request #2215 from Areloch/MeshBaking_Expanded
Expanded mesh baking functionality
2018-03-17 00:41:37 -05:00
Areloch 71ac83fc9f
Merge pull request #2219 from CouleeApps/security-fixes
Security Fixes: String Buffers
2018-03-16 23:48:19 -05:00
Areloch ac67ed8e1a
Merge pull request #2090 from Areloch/ConsoleLogFilters
Adds some filtering options to the console log gui
2018-03-16 23:41:00 -05:00
Azaezel 94fae4b3c1 shadowvar cleanup 2018-03-16 20:28:01 -05:00
Azaezel 21f9c3343c console membervar cleanup 2018-03-16 20:05:47 -05:00
Azaezel a2ca9c634f shadowvar cleanup 2018-03-16 20:05:19 -05:00
Azaezel db7fad712e bitstream shadowvar cleanup 2018-03-16 20:04:43 -05:00
Azaezel 7d889a9a56 ast shadowvar cleanup 2018-03-16 20:04:14 -05:00
Azaezel fe3cd40d1e local shadowvar cleanup 2018-03-16 20:03:02 -05:00
Azaezel 3ce15b33eb collada/ts chain shadowvar and member var clenaups 2018-03-16 18:40:32 -05:00
Azaezel 0f3843cc5e shadowvar cleanup 2018-03-16 17:40:25 -05:00
Azaezel 4be468b1ae flipped debug rendering on for convexShapes, and added the following prefs:
$pref::convexDBG::ShowWorldBox = (bool);
$pref::convexDBG::ShowEdges = (bool); <-----------aparantly nonfucntional
$pref::convexDBG::ShowFaceColors = (bool);
$pref::convexDBG::ShowWinding = (bool);
$pref::convexDBG::ShowSurfaceTransforms = (bool);
2018-03-16 17:14:12 -05:00
Azaezel 71e640f6b6 unnecessarily duplicated var definitions 2018-03-16 17:12:22 -05:00
Azaezel de4f2ddc2a (crashfix) clean up shadowvar followup. 2018-03-16 16:21:53 -05:00
Azaezel 21b82b737d shadowvar cleanup 2018-03-16 11:13:26 -05:00
Azaezel f9aa23f9c5 shadowvar cleanup 2018-03-15 21:41:17 -05:00
Azaezel dd297ce39d forest shadowvar cleanups 2018-03-15 20:47:25 -05:00
Azaezel bc407314f8 tinyxml core class uses a 'value' variable. method io and tempvars altered to work around the 'conflict' 2018-03-15 20:45:18 -05:00
Azaezel 870acaf5e4 gfxDrawutil, gizmo shadowvar cleanups 2018-03-15 20:44:13 -05:00
Azaezel 46bbb88d71 CollisionState membervar clarification 2018-03-15 17:31:28 -05:00
Azaezel e23487b4b1 groundcover shadowvar cleanup 2018-03-15 15:37:04 -05:00
Azaezel 1b016c4b7d local 'duplicates' of scratchbuffer global shifted to varBuffer 2018-03-15 15:36:38 -05:00
Azaezel 342bf8f3d3 gui shadowvar cleanups 2018-03-15 14:50:54 -05:00
Azaezel 2009bf1ee3 refactor to avoid shadowvars 2018-03-15 00:52:03 -05:00
Azaezel b20e6875f7 frustum definition duplication(s) 2018-03-15 00:43:29 -05:00
Azaezel 584d7fdc29 shadowvar cleanup 2018-03-14 19:07:03 -05:00
Azaezel 7af02efe29 crashfix from prior commit 2018-03-14 18:44:51 -05:00
Azaezel 1bd398a959 cleanups for decal and mesh road, and the meshroad and river editors 2018-03-14 17:43:03 -05:00
Azaezel 0a80dac669 shadowvar cleanup 2018-03-14 17:42:18 -05:00
Azaezel c01b149e74 XXXVehicle::updateEmitter cleanups 2018-03-14 17:41:29 -05:00
Azaezel 29245ed7e4 doubleup on dt (usually denotes delta-time. in this case also incorporates time-of-collision) 2018-03-14 17:39:50 -05:00
Azaezel ae455be27a doubleup on Q defintion for baycentric coord calcs 2018-03-14 17:38:44 -05:00
Azaezel ea2f017756 ease member vars tagged as member vars 2018-03-14 15:45:45 -05:00
Azaezel e126ca1823 PolyhedronVectorData core membervar cleanups 2018-03-14 15:18:00 -05:00
Azaezel b415ac8f6b davmesh debug draw membervar cleanup 2018-03-14 15:13:44 -05:00
Azaezel b37dcc9d3a duplicated ghostinfo itterator 2018-03-14 15:10:43 -05:00
Azaezel 9200eb99e1 duplicate var+assignment 2018-03-14 13:15:14 -05:00
Azaezel a357f9154b Polytope::intersect variable differerntiation. 2018-03-14 13:14:39 -05:00
Azaezel 99aa6263e6 layer, and playerControllerComponent shadowvar cleanups 2018-03-14 13:12:26 -05:00
Azaezel 45a4de7c4a shadowvar cleanups for scattersky and accumulationVolume 2018-03-13 21:29:09 -05:00
Azaezel 53869600cc netObject classvar cleanups 2018-03-13 21:27:31 -05:00
Azaezel f0e5fddde8 reflector classvar cleanups 2018-03-13 21:26:27 -05:00
Azaezel 68da3176c9 more gfx shadowvar cleanups 2018-03-13 21:25:45 -05:00
Azaezel 577e16ec10 sfx shadowvar cleanup 2018-03-13 21:25:02 -05:00
Azaezel 656c81dd39 ribbon classvar cleanup 2018-03-13 21:24:37 -05:00
Azaezel e24e917cf9 MountedImage& image = mMountedImageList[i]; clarification cases 2018-03-13 19:29:08 -05:00
Azaezel 50ed2f6d08 clean up unnecessary global char buffer[100] define 2018-03-13 19:27:47 -05:00
Azaezel 151632f0c4 shader hooks and gen cleanups 2018-03-13 18:07:58 -05:00
Azaezel 32707c5e53 SFXMemoryStream::read clarification. 2018-03-13 18:05:30 -05:00
Azaezel 1d754d92d7 serverquery cleanup 2018-03-13 18:03:10 -05:00
Azaezel ae514ef808 animation clarification 2018-03-13 17:54:35 -05:00
Azaezel 1fc7192018 terrain file I/O and opengl rendering cleanup 2018-03-13 17:33:13 -05:00
Azaezel 87207e0a97 simobject, dictionary, stringtable, and taml clarificationsand cleanups 2018-03-13 17:30:33 -05:00
Azaezel f1c397e055 scenecontainer cleanup 2018-03-13 17:29:03 -05:00
Azaezel a5917ced16 substitution statements conformed to standard class:mVar standard 2018-03-13 17:27:24 -05:00
Azaezel 3ceaa0ed50 cleaned up member::radius 2018-03-13 15:31:00 -05:00
Azaezel 4615bd6db8 more compiler compliant cleanups plus a full set of tsMesh::foo to tsmesh::mFoo class var conversions for consistency 2018-03-13 14:53:23 -05:00
Azaezel b55db9a143 TSMesh::castRayOpcode method var clarifications/match for .h file 2018-03-13 14:26:17 -05:00
Azaezel 10937d0a4d tsignal::order to ::mOrder. yet another potential conflict with a class member vs a method input 2018-03-13 14:22:51 -05:00
Azaezel 57af794ee3 clarified the texture-atlas varnames a bit. (shadow vars cleanup) 2018-03-13 12:16:17 -05:00
Azaezel ef0a4bee08 tsmesh: parentMesh and indicies to mParentMesh and mIndicies (usual deal, complaints about method vars or temp ones potentially conflicting with class vars) 2018-03-13 11:36:36 -05:00
Azaezel 4a5c36352c remove inside a remove after a remove... yeah.... No. 2018-03-13 02:12:59 -05:00
Azaezel 95f7205f61 buf clarification. mModifLightRays logic cleanup 2018-03-13 02:11:57 -05:00
Azaezel 242a51eefe bounds to mBounds conflict avoidance 2018-03-13 01:05:15 -05:00
Azaezel f08339c534 many *many* generic is and js 2018-03-13 00:57:31 -05:00
Azaezel f10e5d5933 pos to mSeqPos to resolve a method entry vs class entry 2018-03-12 23:09:20 -05:00
Azaezel a061af68d2 delta to mDelta to resolve another class var vs method var confusionpoint 2018-03-12 23:07:34 -05:00
Azaezel 95b46c107a winconsole many, many i vars. worldEditor path arguement, lockPtr doubleup. volume.cpp: uneccesary duplicated FileNode::Attributes attr; def 2018-03-12 19:10:55 -05:00
Azaezel 452bbc7bb1 cleans up extra=extra complaint 2018-03-12 17:41:22 -05:00
Azaezel 261a71c3f9 clarified several variable 'r' definitions, as well as a doubleup of a sucessive S32 txt_w = mProfile->mFont->getStrWidth( buff ); pair 2018-03-12 16:00:10 -05:00
Azaezel 9141d37ca2 corrects PopupMenu::checkItem() not checking the item. also prepends m to member variables for the MenuItem class to correct a few more locals hiding classvar reports. 2018-03-12 14:30:49 -05:00
Azaezel 0a09aaba2e nother set of generic 'object' varnames, all of which referenced different things 2018-03-12 04:37:41 -05:00
Azaezel 35d5e8178e overgeneralised variable 'name' clarified between use-cases 2018-03-12 04:04:41 -05:00
Azaezel 65870124b0 local obectName doubleup 2018-03-12 04:03:46 -05:00
Azaezel 9298d889b3 simset::objectList to simset::mObjectList 2018-03-12 03:58:19 -05:00
Azaezel 886dcbaac5 variable naming cleanup due to locals overriding in multiple places. objectname to mObjectName+ getName() refs in dictionary. 2018-03-12 02:36:52 -05:00
Glenn Smith 6b024b21bf As suggested, extract strlen calls from sizes into variables so it isn't called twice 2018-03-08 20:59:40 -05:00
Glenn Smith ed10ce2511 A buffer overflow in enumerateConsoleClassesByCategory 2018-03-08 00:51:52 -05:00
Glenn Smith f9c684fb11 Speaking of badly sized mac things 2018-03-08 00:45:43 -05:00
Glenn Smith 7fc60fbf59 Better to use strlcat and strlcpy and move them to the cpp file. Provided an implementation for platforms that don't support them (macOS only currently) 2018-03-08 00:45:24 -05:00
Glenn Smith cd79088939 Let dStrncat use strncat because it's probably set up for that 2018-03-07 03:58:28 -05:00
Areloch b21c139850 Missed a cleanup line. 2018-03-07 01:30:44 -06:00
Glenn Smith 963333c583 More cats and cpys in files that xcode doesn't see 2018-03-07 01:13:56 -05:00
Glenn Smith 25c25b20b1 Engine was also using raw strcat/strcpy 2018-03-07 00:49:46 -05:00
Glenn Smith 751ccae12d Missed a couple +1s here and there 2018-03-07 00:44:46 -05:00
Glenn Smith a94e0c6d81 Cleaning up the checks 2018-03-06 02:37:42 -05:00
Glenn Smith e03a86f75a Actual buffer overflow bug found because of these fixes 2018-03-06 02:35:46 -05:00
Glenn Smith a94587af43 Use strncpy instead of strcpy because again, buffer overflows 2018-03-06 02:35:33 -05:00
Glenn Smith 1728fe39ad Use strncat instead of strcat to prevent some buffer overflows 2018-03-06 00:48:44 -05:00
Glenn Smith bf408235a8 Removed unused macString.mm that has old versions of string functions with no bounds checking 2018-03-05 23:48:09 -05:00
Areloch 43ca2c5bc2 Cleanup of export function to remove redundant arg
Removed unused var
Cleaned up collision export on convexShape
Added prefab export functionality
2018-03-04 16:03:39 -06:00
Areloch 501a322435 Adds handling for the proper updated exporting of mesh for convexShapes 2018-03-04 15:10:44 -06:00
Areloch f309b736ca Expanded mesh baking functionality, now supporting baking of LODs and Collision meshes 2018-03-01 01:51:18 -06:00
Johxz 09854e2612 update readme version files 2018-02-28 22:42:42 -06:00
Johxz 8aa48ff21b update recast 2018-02-28 22:15:31 -06:00
Johxz 64c2059050 delete old files 2018-02-28 13:01:06 -06:00
Azaezel 1a3e7970ca requested revision: use dword just in case of compiler shenanigans 2018-02-26 22:34:21 -06:00