MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / flush

Method flush

Source/Falcor/Utils/Scripting/Console.cpp:124–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124bool Console::flush()
125{
126 if (mCmdPending.empty())
127 return false;
128
129 if (mCmdPending == "cls")
130 {
131 clear();
132 return false;
133 }
134
135 try
136 {
137 mLog += Scripting::interpretScript(mCmdPending);
138 }
139 catch (const std::exception& e)
140 {
141 mLog += std::string(e.what()) + "\n";
142 };
143
144 mCmdPending.clear();
145
146 return true;
147}
148
149void Console::enterCommand()
150{

Callers 3

logMethod · 0.45
dumpPropertiesMethod · 0.45
renderFrameMethod · 0.45

Calls 5

stringFunction · 0.85
whatMethod · 0.80
clearFunction · 0.50
emptyMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected