MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / BasicCmdcmdhist

Method BasicCmdcmdhist

physx/samples/samplebase/SampleConsole.cpp:103–113  ·  view source on GitHub ↗

CMDHIST: a basic command to display command history Usage: cmdhist

Source from the content-addressed store, hash-verified

101// CMDHIST: a basic command to display command history
102// Usage: cmdhist
103void Console::BasicCmdcmdhist(Console* console, const char* text, void* user_data)
104{
105 long index = console->mNewcmd - console->mNumcmdhist;
106 for(long i=0;i<console->mNumcmdhist;i++)
107 {
108 if( index > CONSOLE_MAX_HIST )
109 index -= CONSOLE_MAX_HIST;
110 console->out(console->mCmdhist[index] );
111 index++;
112 }
113}
114
115///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
116/**

Callers

nothing calls this directly

Calls 1

outMethod · 0.80

Tested by

no test coverage detected