Replaced a ton of ConsoleMethods with the DefineConsoleMethod Macro.

This commit is contained in:
Vincent Gee 2014-11-03 22:42:51 -05:00
parent 378a933894
commit acb192e2a5
133 changed files with 1716 additions and 2087 deletions

View file

@ -53,7 +53,7 @@ void GFXCardProfiler::loadProfileScript(const char* aScriptName)
Con::printf(" - Loaded card profile %s", scriptName.c_str());
Con::executef("eval", script);
Con::evaluate(script, false, NULL);
delete[] script;
}

View file

@ -58,16 +58,20 @@ U32 GFXTextureObject::dumpActiveTOs()
return smActiveTOCount;
}
#endif // TORQUE_DEBUG
DefineEngineFunction( dumpTextureObjects, void, (),,
"Dumps a list of all active texture objects to the console.\n"
"@note This function is only available in debug builds.\n"
"@ingroup GFX\n" )
{
#ifdef TORQUE_DEBUG
GFXTextureObject::dumpActiveTOs();
#endif
}
#endif // TORQUE_DEBUG
//-----------------------------------------------------------------------------
// GFXTextureObject
//-----------------------------------------------------------------------------

View file

@ -305,10 +305,11 @@ void VideoFrameGrabber::_onTextureEvent(GFXTexCallbackCode code)
///----------------------------------------------------------------------
///----------------------------------------------------------------------
//WLE - Vince
//Changing the resolution to Point2I::Zero instead of the Point2I(0,0) better to use constants.
DefineEngineFunction( startVideoCapture, void,
( GuiCanvas *canvas, const char *filename, const char *encoder, F32 framerate, Point2I resolution ),
( "THEORA", 30.0f, Point2I( 0, 0 ) ),
( "THEORA", 30.0f, Point2I::Zero ),
"Begins a video capture session.\n"
"@see stopVideoCapture\n"
"@ingroup Rendering\n" )
@ -339,7 +340,7 @@ DefineEngineFunction( stopVideoCapture, void, (),,
DefineEngineFunction( playJournalToVideo, void,
( const char *journalFile, const char *videoFile, const char *encoder, F32 framerate, Point2I resolution ),
( NULL, "THEORA", 30.0f, Point2I( 0, 0 ) ),
( NULL, "THEORA", 30.0f, Point2I::Zero ),
"Load a journal file and capture it video.\n"
"@ingroup Rendering\n" )
{