MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / dumpStates

Method dumpStates

Engine/source/gfx/gfxDevice.cpp:931–952  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

929
930#ifndef TORQUE_SHIPPING
931void GFXDevice::dumpStates( const char *fileName ) const
932{
933 DescriptionOutputter output(fileName);
934
935 output.write("Current state");
936 if (!mCurrentStateBlock.isNull())
937 output.write(mCurrentStateBlock->getDesc().describeSelf().c_str());
938 else
939 output.write("No state!");
940
941 output.write("\nAll states:\n");
942 GFXResource* walk = mResourceListHead;
943 while(walk)
944 {
945 const GFXStateBlock* sb = dynamic_cast<const GFXStateBlock*>(walk);
946 if (sb)
947 {
948 output.write(sb->getDesc().describeSelf().c_str());
949 }
950 walk = walk->getNextResource();
951 }
952}
953#endif
954
955void GFXDevice::listResources(bool unflaggedOnly)

Callers 1

gfxDevice.cppFile · 0.80

Calls 6

getDescMethod · 0.80
getNextResourceMethod · 0.80
writeMethod · 0.45
isNullMethod · 0.45
c_strMethod · 0.45
describeSelfMethod · 0.45

Tested by

no test coverage detected