exampleHelper.h 586 B

1234567891011121314151617181920212223242526
  1. // Copyright (C) 2015 Patryk Nadrowski
  2. // This file is part of the "Irrlicht Engine".
  3. // For conditions of distribution and use, see copyright notice in irrlicht.h
  4. #ifndef IRR_EXAMPLE_HELPER_H_INCLUDED
  5. #define IRR_EXAMPLE_HELPER_H_INCLUDED
  6. #include "IrrCompileConfig.h"
  7. #include "path.h"
  8. namespace irr
  9. {
  10. static io::path getExampleMediaPath()
  11. {
  12. #if defined (_IRR_IPHONE_PLATFORM_) || defined (_IRR_ANDROID_PLATFORM_) || defined (_IRR_OSX_PLATFORM_)
  13. return io::path("media/");
  14. #else
  15. return io::path("../../media/");
  16. #endif
  17. }
  18. } // end namespace irr
  19. #endif