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

Method out

physx/samples/samplebase/SampleConsole.cpp:223–238  ·  view source on GitHub ↗

Write a string to the console

Source from the content-addressed store, hash-verified

221
222// Write a string to the console
223void Console::out(const char* string)
224{
225 advance();
226
227 if(string)
228 {
229 size_t Length = strlen(string);
230 if(Length>=CONSOLE_MAX_COL-1)
231 {
232 PX_ASSERT(0);
233 strcpy(mBuffer[mNewline].mText, "CONSOLE LINE TOO LONG!");
234 }
235 else
236 strcpy(mBuffer[mNewline].mText, string);
237 }
238}
239
240// Process an instruction
241// called after the user hits enter

Callers 9

gConsole_DumpCCTPositionFunction · 0.80
gNearPlaneFunction · 0.80
gFarPlaneFunction · 0.80
BasicCmdcmdlistMethod · 0.80
BasicCmdcmdhistMethod · 0.80
gJumpFunction · 0.80
gValueFunction · 0.80
gExportFunction · 0.80
gImportFunction · 0.80

Calls 1

advanceFunction · 0.85

Tested by

no test coverage detected