Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/nico/src/heightMap/main.cc @ 3382

Last change on this file since 3382 was 3382, checked in by nico, 19 years ago

orxonox/branches/nico: renamed .cpp to .cc

  • Property svn:executable set to *
File size: 416 bytes
Line 
1#include <iostream>
2using namespace std;
3
4#include "heightMapViewer.h"
5
6#include "SDL.h"
7
8
9int main(int argc, char *argv[])
10{
11        HeightMapViewer viewer;
12
13        if (argc <= 1)
14        {
15                cout << "specify a 8-bit greyscale bmp-file to load as argument!" << endl;
16                return -1;
17        }
18
19        // initialize
20        if (viewer.init(argv[1]) == false)
21        {
22                cout << "could not init. exiting." << endl;
23                return -1;
24        }
25       
26        viewer.run();
27       
28    return 0;
29}
Note: See TracBrowser for help on using the repository browser.