forked from beltoforion/Galaxy-Renderer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
39 lines (33 loc) · 713 Bytes
/
main.cpp
File metadata and controls
39 lines (33 loc) · 713 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
* File: main.cpp
* Author: user
*
* Created on 5. Juli 2009, 22:15
*/
#include <cstdlib>
#include <iostream>
//------------------------------------------------------------------------------
#include "NBodyWnd.h"
//------------------------------------------------------------------------------
/*
*
*/
int main(int argc, char** argv)
{
try
{
NBodyWnd wndMain(800, "Density wave simulation");
// Define simulation size
wndMain.Init(4000);
wndMain.MainLoop();
}
catch(std::exception & exc)
{
std::cout << "Fatal error: " << exc.what() << std::endl;
}
catch(...)
{
std::cout << "Fatal error: unexpected exception" << std::endl;
}
return (EXIT_SUCCESS);
}