| 929 | |
| 930 | #ifndef TORQUE_SHIPPING |
| 931 | void 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 | |
| 955 | void GFXDevice::listResources(bool unflaggedOnly) |
no test coverage detected