| 
                Last change
                  on this file since 3381 was
                  3381,
                  checked in by nico, 21 years ago
           | 
        
        
          | 
               
developing heightMap 
 
           | 
        
        
          
            
              - 
                  Property svn:executable set to
                  
*
               
             
           | 
        
        | 
            File size:
            416 bytes
           | 
      
      
        
  | Line |   | 
|---|
| 1 | #include <iostream> | 
|---|
| 2 | using namespace std; | 
|---|
| 3 |  | 
|---|
| 4 | #include "heightMapViewer.h" | 
|---|
| 5 |  | 
|---|
| 6 | #include "SDL.h" | 
|---|
| 7 |  | 
|---|
| 8 |  | 
|---|
| 9 | int 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.