#include #include #include #include #include #include #include "rw.h" using namespace std; int main(int argc, char *argv[]) { // Rw::Version = 0x31000; // Rw::Build = 0; registerNodeNamePlugin(); registerBreakableModelPlugin(); registerNativeDataPlugin(); registerMeshPlugin(); Rw::Clump *c; ifstream in(argv[1], ios::binary); Rw::FindChunk(in, Rw::ID_CLUMP, NULL, NULL); c = Rw::Clump::streamRead(in); in.close(); ofstream out(argv[2], ios::binary); c->streamWrite(out); out.close(); delete c; return 0; }