Print useful error message instead of segfaulting when files are not there.
| 37 | |
| 38 | // Print useful error message instead of segfaulting when files are not there. |
| 39 | static void problemLoading(const char* filename) |
| 40 | { |
| 41 | printf("Error while loading: %s\n", filename); |
| 42 | printf("Depending on how you compiled you might have to add 'Resources/' in front of filenames in SampleSceneScene.cpp\n"); |
| 43 | } |
| 44 | |
| 45 | // on "init" you need to initialize your instance |
| 46 | bool SampleScene::init() |