source: anuga_work/development/anugavis/src/anugavis_simple.c @ 5292

Last change on this file since 5292 was 5292, checked in by jack, 16 years ago

anugavis: Some basic camera control and frame stepping.

File size: 841 bytes
Line 
1#include "error.h"
2#include "events.h"
3#include "height_quantity.h"
4#include "init.h"
5#include "globals.h"
6#include <stdio.h>
7int main(int argc, char *argv[]){
8  if(argc != 2){
9    printf("Usage: anugavis_simple sww_file_name\n");
10    return 1;
11  }
12  if(AnugaVis_Init(640, 480, argv[1]) == -1){
13    printf("AnugaVis_Init() Error: %s\n", AnugaVis_GetError());
14    return 1;
15  }
16/*   if(AnugaVis_DefineHeightQuantity("elevation", 0.0, 1.0, 0.5, 0.5, 0.5) == -1){ */
17/*     printf("AnugaVis_DefineHeightQuantity() Error: %s\n", AnugaVis_GetError()); */
18/*     return 1; */
19/*   } */
20  if(AnugaVis_DefineHeightQuantity("stage", -0.01, 1.0, 0.0, 0.0, 0.5) == -1){
21    printf("AnugaVis_DefineHeightQuantity() Error: %s\n", AnugaVis_GetError());
22    return 1;
23  }
24
25  AnugaVis_Run();
26
27  AnugaVis_DeInit();
28  return 0;
29}
Note: See TracBrowser for help on using the repository browser.