Advertisement
sebbu

convert_sfml_1.6_to_2.0.sh

Apr 11th, 2013
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.61 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. sed -sri 's/sf::WindowSettings/sf::ContextSettings/g' *.{hpp,cpp}
  4. sed -sri 's/->LoadFromFile/->loadFromFile/g' *.{hpp,cpp}
  5. sed -sri 's/\.LoadFromFile/.loadFromFile/g' *.{hpp,cpp}
  6. sed -sri 's/->GetPixel/->getPixel/g' *.{hpp,cpp}
  7. sed -sri 's/->SetPixel/->setPixel/g' *.{hpp,cpp}
  8. sed -sri 's/->CreateMaskFromColor/->createMaskFromColor/g' *.{hpp,cpp}
  9. sed -sri 's/\.Left/.left/g' *.{hpp,cpp}
  10. sed -sri 's/\.Top/.top/g' *.{hpp,cpp}
  11. sed -sri 's/sf::Image/sf::Texture/g' *.{hpp,cpp}
  12. sed -sri 's/->SetSmooth/->setSmooth/g' *.{hpp,cpp}
  13. sed -sri 's/\.IsSmooth/.isSmooth/g' *.{hpp,cpp}
  14. sed -sri 's/\.SetImage/.setTexture/g' *.{hpp,cpp}
  15. sed -sri 's/\.SetSubRect/.setTextureRect/g' *.{hpp,cpp}
  16. sed -sri 's/\.SetPosition/.setPosition/g' *.{hpp,cpp}
  17. sed -sri 's/->SetFramerateLimit/->setFramerateLimit/g' *.{hpp,cpp}
  18. sed -sri 's/->GetView/->getView/g' *.{hpp,cpp}
  19. sed -sri 's/Event\.Type/Event.type/g' *.{hpp,cpp}
  20. sed -sri 's/Event\.Key/Event.key/g' *.{hpp,cpp}
  21. sed -sri 's/Event\.key\.Code/Event.key.code/g' *.{hpp,cpp}
  22. sed -sri 's/sf::Key/sf::Keyboard/g' *.{hpp,cpp}
  23. sed -sri 's/->Close/->close/g' *.{hpp,cpp}
  24. sed -sri 's/->Clear/->clear/g' *.{hpp,cpp}
  25. sed -sri 's/->Draw/->draw/g' *.{hpp,cpp}
  26. sed -sri 's/->Display/->display/g' *.{hpp,cpp}
  27. sed -sri 's/->IsOpened/->isOpen/g' *.{hpp,cpp}
  28. sed -sri 's/->GetEvent/->pollEvent/g' *.{hpp,cpp}
  29. sed -sri 's/\.GetRect/.getViewport /g' *.{hpp,cpp}
  30. sed -sri 's/\.SetRect/.setViewport /g' *.{hpp,cpp}
  31. sed -sri 's/\.Move/.move/g' *.{hpp,cpp}
  32. sed -sri 's/\.SetView/.setView/g' *.{hpp,cpp}
  33. sed -sri 's/->SetView/->setView/g' *.{hpp,cpp}
  34. sed -sri 's/\.SetScale/.setScale/g' *.{hpp,cpp}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement