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