Waterflow
Visualize water in terrain
|
00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 #include "program.h" 00016 00017 int main(int argc, char *argv[]) { 00018 00019 std::cout << "Which simulation do you want to run?\n"; 00020 std::cout << "1. Heightfield based water simulation (with xml specified data) \n"; 00021 std::cout << "2. Navier-Stokes based shallow water simulation on a predefined testcase. (showcase demo). \n"; 00022 int choice; 00023 00024 std::cin >> choice; 00025 00026 if(choice != 1 && choice != 2) 00027 { 00028 std::cout << "Invalid option" << std::endl; 00029 return -1; 00030 } 00031 00032 Program program(choice); 00033 00034 return program.exec(); 00035 }